Reply
Thread Tools
Posts: 18 | Thanked: 1 time | Joined on Apr 2008
#11
The result of iptables -t nat -L is:

Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#12
Then the nat table and the POSTROUTING chain exist. The problem has to be with the MASQUERADE target. Is the ipt_MASQUERADE module inserted? What is the output of lsmod?
 
Posts: 18 | Thanked: 1 time | Joined on Apr 2008
#13
Hmm... When I type in
iptables -t MASQUERADE -L

I got the following:
iptables v1.3.6: can't inintalize iptables table 'MASUERADE': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

And when I try to rerun the command:

insmod /lib/modules/2.6.21-omap1/net/ipv4/netfilter/ipt_MASQUERADE.ko

I got the following:

insmod: cannot insert '/lib/modules/2.6.21-omap1/net/ipv4/netfilter/ipt_MASQUERADE.ko': File exists (-1): File exists

Any ideal???
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#14
MASQUERADE is a target, not a table, so the command you ran should fail.

Please run the command

iptables -t nat -I POSTROUTING -j MASQUERADE

and report the result.


PLEASE, please also include the output from lsmod.
 
Posts: 18 | Thanked: 1 time | Joined on Apr 2008
#15
I ran the command

iptables -t nat -I POSTROUTING -j MASQUERADE

and the result is:
iptables v1.3.6: no command specified
Try 'iptables -h' ro iptables --helo' for more information
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#16
The I is a capital i, not a small L.
 
Posts: 18 | Thanked: 1 time | Joined on Apr 2008
#17
When I type in:
iptables -t nat -I POSTROUTING -j MASQUERADE

there aren't any output. Just show a new prompt.

any ideal?
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#18
This means that the command is accepted without errors. This is the unix way - no unnecessary output.

Now try the same successful command with additional -o bnep0 and see if it works.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 07:52.