iptables configuration help

Vijay Kumar <vijay-d+bK1eGgz2KBUy7/[email protected]> Fri, 05 Nov 2004 16:03:16 +0530
Newsgroups gmane.comp.security.firewalls.smoothwall.general
Organization calsoft Private Limited
Message-ID <[email protected]>
Hello,

I have added two sub interfaces to the external ethernet interface of Smoothwall. 
There are 2 machines on the internal LAN and I want them to go out using the IP of the sub interface,
i.e access the internet using the exteral IP's.  they should not have any restrictions by Smoothwall. 
How can do this and what IP Tables rules should I add ? 

I have done the following : 

iptables -A INPUT -s 172.16.0.119 -d 0.0.0.0/0.0.0.0 -j ACCEPT 
iptables -I FORWARD -s 172.16.0.119 -j ACCEPT 
iptables -t nat -I POSTROUTING -s 172.16.0.119 -o eth1:0 -j SNAT --to-source <external_ip> 

When I addded the rules iptables gave me an error stating :" Weird character in interface eth0:0, no ! : "
Where am I going wrong ? Are sub interface allowed in iptables ? 

Kindly help.

Vijay Kumar.
_______________________________________________
gpl mailing list
[email protected]
http://lists.smoothwall.org/mailman/listinfo/gpl

SmoothWall Stash - Buy Our Stuff! http://cafepress.com/smoothwall