Skip to contentSkip to conversation

Simple newbie's question

DISCUSSION Antony Stone 1 participant 1 message Feb 17, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 004c01c3f53e$845bebe0$2d64a8c0@pcjka

#1 lore raw
Quoted 8 lines · Jan Kaastrup

Hi list
After a reboot of my RedHat mashine, the NAT part of Iptables stop working.

I get: "iptables: Invalid argument" when using snat.

My snat rule look like this:
$IPTABLES -t nat -A POSTROUTING -o $EXT_INT -j SNAT --to-source $EXT_IP

Are you sure that $EXT_INT and $EXT_IP are defined?

Quoted 1 line

I have made all netfilter stuff as modules.

I don't use modules, so I'm not the best person to look at this list and say if it appears to be sufficient for what you are doing - can anyone else help here?

Quoted 24 lines

#lsmod

ip_conntrack_irc        4336   1  (autoclean)
ip_nat_irc              3440   0  (unused)
ip_conntrack_ftp        5520   1  (autoclean)
ip_nat_ftp              4240   0  (unused)
ipt_ah                  1080   0  (unused)
ipt_esp                 1112   0  (unused)
iptable_nat            22040   2  [ip_nat_irc ip_nat_ftp]
ppp_mppe               24088   0  (autoclean)
bsd_comp                5464   0  (autoclean)
ppp_async               9440   0  (autoclean)
ppp_generic            24508   0  (autoclean) [ppp_mppe bsd_comp
ppp_async]
slhc                    6740   0  (autoclean) [ppp_generic]
ipt_LOG                 4152   1  (autoclean)
ipt_REJECT              4024   1  (autoclean)
ipt_state               1048   5  (autoclean)
iptable_mangle          2776   0  (autoclean) (unused)
ip_conntrack           28296   4  (autoclean) [ip_conntrack_irc

ip_nat_irc ip_conntrack_ftp ip_nat_ftp iptable_nat ipt_state]
iptable_filter 2412 1 (autoclean)
ip_tables 14872 10 [ipt_ah ipt_esp iptable_nat ipt_LOG
ipt_REJECT ipt_state iptable_mangle iptable_filter]

Quoted 6 lines

Any hints???

I have tried to recompile iptables - but nothing seems to work - I know it did before the reboot.
Only thing that has been changed is a static route being enabled, but this shouldn't make iptables complain:(

Regards,

Antony.

Signature · 8 lines
You can spend the whole of your life trying to be popular,
but at the end of the day the size of the crowd at your funeral
will be largely dictated by the weather.

 - Frank Skinner

                                                     Please reply to the list;
                                                           please don't CC me.