iptables

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

Deborah
Posts: 5
Joined: Mon Oct 27, 2008 6:15 pm

iptables

Post by Deborah »

HI,

I'm getting this error when trying to restore my iptables:

iptables-restore v1.3.8: iptables-restore: unable to initialize table 'nat'

This is my file:

# Generated by iptables-save v1.3.8 on Wed Oct 29 11:32:31 2008
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A PREROUTING -i eth+ -p tcp --dport 25 -j REDIRECT --to-port 8025
COMMIT
*mangle
:PREROUTING ACCEPT [411:33624]
:INPUT ACCEPT [411:33624]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [269:34680]
:POSTROUTING ACCEPT [269:34680]
COMMIT
# Completed on Wed Oct 29 11:32:31 2008
# Generated by iptables-save v1.3.8 on Wed Oct 29 11:32:31 2008
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [269:34680]
:RH-Firewall-1-INPUT - [0:0]
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8044 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
COMMIT
# Completed on Wed Oct 29 11:32:31 2008


Can anyone help me with this? Thanks.
Deborah
maschoff
Site Admin
Posts: 2608
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

The 4th line of the NAT section has to be moved to the FILTER filter section (before COMMIT).
OpenEMM Maintainer
Deborah
Posts: 5
Joined: Mon Oct 27, 2008 6:15 pm

Post by Deborah »

Thanks MA,

I now get this error:
FATAL: Could not load /lib/modules/2.6.9-023stab044.4-smp/modules.dep: No such file or directory
iptables-restore v1.3.8: iptables-restore: unable to initialize table 'nat'
Post Reply