I want to use suse 7.3 for router & i want to do masquerading. I have 2 net card that one is for internal network & another is for external network. eth0 for internal network eth1 for external network I have typed in /etc/rc.config.d/firewall2.rc.config this rule: iptables -A FORWARD -i eth1 -s 192.168.1.0/30 -j MASQUERADE Is this any problem with this rule? Because when the system is booting in process boot i get this line: Starting Firewall Initialization: (phase 3 of 3) iptables: Invalid Argument and only router system can see internet and another system can't see internet How can i solve this problem that another system (internal network) can see internet? Thanks, Payam __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
You need to use nat I do not use the Firewalls that come with SuSE because I am use to writing my own firewall scripts. This is the line that I use for masqueradeing: iptables -t nat -A POSTROUTING -j MASQUERADE Hope this helps you out. Jon On Monday 06 January 2003 09:31, payam payami wrote:
I want to use suse 7.3 for router & i want to do masquerading. I have 2 net card that one is for internal network & another is for external network. eth0 for internal network eth1 for external network I have typed in /etc/rc.config.d/firewall2.rc.config this rule:
iptables -A FORWARD -i eth1 -s 192.168.1.0/30 -j MASQUERADE
Is this any problem with this rule? Because when the system is booting in process boot i get this line:
Starting Firewall Initialization: (phase 3 of 3) iptables: Invalid Argument
and only router system can see internet and another system can't see internet How can i solve this problem that another system (internal network) can see internet?
Thanks, Payam
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
iptables -A FORWARD -i eth1 -s 192.168.1.0/30 -j MASQUERADE
Is this any problem with this rule? Because when the system is booting in process boot i get this line:
Starting Firewall Initialization: (phase 3 of 3) iptables: Invalid Argument
have not seen any response to this, strange .., hence: iptables -A POSTROUTING -t nat -i eth1 -s 192.168.1.0/30 -j MASQUERADE should at least avoid the error message Achim
participants (3)
-
Achim Hoffmann
-
Jon Hoffman
-
payam payami