Linux Netfilter discussions
 help / color / mirror / Atom feed
* Defining Variables
@ 2002-07-08 20:45 Mike G. Hammonds
  2002-07-08 23:17 ` Nate Perry-Thistle
  0 siblings, 1 reply; 2+ messages in thread
From: Mike G. Hammonds @ 2002-07-08 20:45 UTC (permalink / raw)
  To: Iptables-User-list (E-mail)

How do you define variables in the /etc/sysconfig/iptables file?
Here is what I'm trying to do:
## Variables ##
IPTABLES="/usr/local/sbin/iptables"	## Default IPTables >= v. 1.2.0
#IPTABLES="/usr/local/bin/iptables"	## Default IPTables <= v. 1.1.2

LOOPBACK="lo"			## Loopback Interface
EXTERNAL="eth0"			## External Interface
INTERNAL="eth1"			## Internal Interface
DMZ_IF="eth2"			## DMZ Interface

INTERNAL_NET="10.97.160.0/24"	## Network address for the internal network
DMZ_NET="192.168.11.0/24"	## Network address for the DMZ

## INT_IP="10.97.160.1"	## IP Address of Internal Interface
   INT_IP=`ifconfig eth1 | grep inet | cut -d : -f 2 | cut -d \  -f 1`

## DMZ_IP="192.168.11.1"	## IP Address of DMZ Interface
   DMZ_IP=`ifconfig $DMZ_IF | grep inet | cut -d : -f 2 | cut -d \  -f 1`

   EXT_IP="10.97.170.4"	        ## IP Address of External Interface
	   	
## EXT_IP=`ifconfig $EXTERNAL | grep inet | cut -d : -f 2 | cut -d \  -f 1`

LOG_LEVEL="notice"		## Default log level: kern.notice 

Mike Hammonds
Fellon-McCord & Associates, Inc.
Information Services Manager
Voice (502) 214-6324 Fax (502)426-8800
mhammonds@knowledgeinenergy.com <mailto:mhammonds@knowledgeinenergy.com >
 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-07-08 23:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-08 20:45 Defining Variables Mike G. Hammonds
2002-07-08 23:17 ` Nate Perry-Thistle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox