Hi Victor, Can you share the full script? We need to know the variables EXTIF, INTIF and EXTIP too.
Sean On 27 October 2016 at 16:02, Chung Kin Mong via luv-main < [email protected]> wrote: > Dear All, > > I have a "iptables script file" which I copied from the net that work > for years, it stopped working yesterday after I upgrade from Ubuntu > 16.04 to 16.10. I am a beginner so the only way for me to diagnose the > problem is to comment out line by line to see what cause the problems, > my finding as follows; > > 482 $IPTABLES -A INPUT -i $EXTIF -s $UNIVERSE -d $EXTIP -m state --state \ > 483 ESTABLISHED,RELATED -j ACCEPT > error message; > Bad argument `state' > > offending line; > 527 $IPTABLES -A OUTPUT -o $INTIF -s $EXTIP -d $INTNET -j ACCEPT > error message; > Bad argument `192.168.0.0/24' > > offending line; > 542 $IPTABLES -A OUTPUT -o $EXTIF -s $EXTIP -d $UNIVERSE -j ACCEPT > error message; > Bad argument `0.0.0.0/0' > > offending line; > 592 $IPTABLES -t nat -A POSTROUTING -o $EXTIF -j SNAT --to $EXTIP > error message; > iptables v1.6.0: option "--to" requires an argument > > Also, variables INTNET=”192.168.0.0/24” and UNIVERSE=”0.0.0.0/0” > > > I have searched the net for answers but most of them indicate > something like "miss typing" etc. However, as the file work fine up to > Ubuntu 16.04 (I have not touch the file in any way) so something must > have changed in 16.10 and I am out of ideas. > > Thanks in advance for the assistance! > > Best regards, > > Victor Mong > I am a beginner so the > _______________________________________________ > luv-main mailing list > [email protected] > https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main >
_______________________________________________ luv-main mailing list [email protected] https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main
