hello
I've recently tried to set up a linux box to share
and filter my internet connection. I already did the same 2 years ago using
ipchains, and tried to do the same with iptables. The problem I have is
that I can't use rules (I based my rc.firewall file on the stronger rc.firewall
exemple available on ipmasq.cjb.net), including the variable $EXTIP, for any
option or commutator placed right after will be misunderstood by iptables.
Moreover I must set my rules this way since I use a ADSL connection in france
which is disconnected and given another ip adress every 24 Hours.
for instance this rule:
$IPTABLES -A INPUT -i $EXTIF -p ICMP -s $UNIVERSE
-d $EXTIP -j ACCEPT
extracted from the ipmasquerading howto will output a error message saying "bad argument accept" and if I change the order of the syntax, anything placed behind the $EXTIP will be the cause of a error output. So I hope some of you can help me with this for I'm
not at ease with variables......
thanx!
|