/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */
Just finished reading the 1.82 doc, very informative.
Problem 1 is with the script for obtaining the IP address from the
Interface. The text shows the command
ppp_ip = "/sbin/ifconfig ppp0 | grep 'inet addr' | awk '{print $2}' | sed -e
's/.*://'"
I have modified the above for my system, replacing ppp0 with eth1, that's
the external interface. Well, when I attempt to use this script, IPCHAINS
complains. I have checked the script using echo. When I echo the variable
I receive nothing ( IPCHAINS doesn't like blank address). If I issued this
command at the command line, please see above script, I am returned the
value of the external interface. Has anyone else run into problem, if so
what did you do?
Second problem.
In the rulesets under the DHCP section there is the following command
/sbin/ipchains -A input -j ACCEPT -i bootp_clients_net_if_name -s 0/0 67 -d
0/0 68 UDP
Now on this one, I replaced bootp_clients_net_if_name with eth1, again its
the external interface name. The system tells me that this command contains
an invalid protocol. I have reviewed the HOWTO and the MAN page for
IPCHAINS, can't fiind what is wrong. Any help or ideas?
John A Barnes
Bank of America
Phone (714) 921-3474 (213) 240-4412
FAX (714) 685-6089
mailto:[EMAIL PROTECTED]
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- THIS INCLUDES
UNSUBSCRIBING!
or email to [EMAIL PROTECTED]
PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.