On Sat, 21 Jul 2001, Hal Burgiss wrote:
> Presumably your script has some rules based on your local IP address?
> I would think so, but can't say without seeing it. Usually, you'd have
> something like:
>
> WAN_IP=`ifconfig $WAN_IF | grep inet | cut -d : -f 2 | cut -d \ -f 1`
>
> to get a dynamic IP. So if the script is doing something like this,
> and you run it from the dhcp exec script, then it will always get it
> right.
The script I'm using doesn't care about the IP address. It simply uses
eth0 so I don't believe that is a problem.
>
> > Is there a chance that you could include the rules you use to handle dhcp?
>
> for i in $DHCP_SERVERS;do
> echo " $i"
> $IPTABLES -A INPUT -p udp -s $i --sport 67 -d $REMOTENET --dport 68 -j ACCEPT
> done
>
> My ISP sometimes uses two dhcp servers.
OK, I see what I need to do to allow for dhcp ip changes showing up from
my isp. I can grab the dhcp server ip from the dhcp info file and create
a rule similar to yours above.
Gerry
--
"The lyfe so short, the craft so long to learne" Geoffrey Chaucer
_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list