Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Masq (-t nat) stopped working for iptables?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1623
Location: U.S.A.

PostPosted: Wed Jul 30, 2003 4:24 pm    Post subject: Masq (-t nat) stopped working for iptables? Reply with quote

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
View user's profile Send private message
fido
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2003
Posts: 148
Location: WSU, Pullman, WA

PostPosted: Wed Jul 30, 2003 4:37 pm    Post subject: Reply with quote

Could you post the entire rules-saved file?
_________________
Amatures built the Ark, professionals built the Titanic
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1623
Location: U.S.A.

PostPosted: Wed Jul 30, 2003 5:32 pm    Post subject: Reply with quote

Well, unmerging and then emerging vs just remerging iptables seems to have fix it. Masq is working again. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum