LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to forward a local port to another IP (kernel 2.6.12) (https://www.linuxquestions.org/questions/linux-networking-3/how-to-forward-a-local-port-to-another-ip-kernel-2-6-12-a-365907/)

saba 09-22-2005 08:43 AM

How to forward a local port to another IP (kernel 2.6.12)
 
Hi!

I'm trying to forward all (locally generated) traffic through a (local) port to the same port on a remote machine. Until recently the following lines in the iptables config file did the job perfectly:

*nat
-A OUTPUT -p tcp -d localhost --dport yy -j DNAT --to xx.xx.xx.xx:yy
COMMIT

But since the last kernel update I get the following error at iptables startup:

kernel: NAT: no longer support implicit source local NAT
kernel: NAT: packet src xx.xx.xx.xx -> dst 127.0.0.1

Does anybody know what went wrong? I'm running the kernel 2.6.12-1.1372_FC3.

Thanks for any help.

saba

dcoyaz 09-22-2005 11:56 AM

You are using the table parameter right?

-t nat -A ....

saba 09-23-2005 01:48 AM

As I understood the structure of the configuration file (/etc/sysconfig/iptables in the FC3 distro) everything between the lines '*nat' and 'COMMIT' goes into the nat table. Am I right?

navilein 09-14-2008 07:06 PM

Quote:

Originally Posted by saba (Post 1865402)
Hi!

I'm trying to forward all (locally generated) traffic through a (local) port to the same port on a remote machine. Until recently the following lines in the iptables config file did the job perfectly:

*nat
-A OUTPUT -p tcp -d localhost --dport yy -j DNAT --to xx.xx.xx.xx:yy
COMMIT

But since the last kernel update I get the following error at iptables startup:

kernel: NAT: no longer support implicit source local NAT
kernel: NAT: packet src xx.xx.xx.xx -> dst 127.0.0.1

Does anybody know what went wrong? I'm running the kernel 2.6.12-1.1372_FC3.

Thanks for any help.

saba

This post is a bit old. I'm trying to do the same thing. Did anyone came up with a solution for it by any chance ?

Thanks!


All times are GMT -5. The time now is 10:07 AM.