View previous topic :: View next topic |
Author |
Message |
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Wed Jul 30, 2003 4:24 pm Post subject: Masq (-t nat) stopped working for iptables? |
|
|
Not sure when this happened. I don't use the other computer much. Tried to rsync it and found out the Masquerading stopped working.
I have a firewall script that worked fine. The only part that seems to be the problem is the ( -t nat ) and POSTROUTING.
Code: | bash-2.05b# iptables-restore < /var/lib/iptables/rules-save
iptables-restore v1.2.8: Line 33 seems to have a -t table option.
Error occured at line: 33
Try `iptables-restore -h' or 'iptables-restore --help' for more information. |
The masqurade part of the script is:
Code: | iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE |
I don't understand why it isn't accepting it anymore. I reemerged iptables and that hasn't helped.
Version is: iptables-1.2.8-r1 |
|
Back to top |
|
|
fido Tux's lil' helper
Joined: 16 Jul 2003 Posts: 148 Location: WSU, Pullman, WA
|
Posted: Wed Jul 30, 2003 4:37 pm Post subject: |
|
|
Could you post the entire rules-saved file? _________________ Amatures built the Ark, professionals built the Titanic |
|
Back to top |
|
|
Decibels Veteran
Joined: 16 Aug 2002 Posts: 1623 Location: U.S.A.
|
Posted: Wed Jul 30, 2003 5:32 pm Post subject: |
|
|
Well, unmerging and then emerging vs just remerging iptables seems to have fix it. Masq is working again. Thanks. |
|
Back to top |
|
|
|