LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2005, 08:43 AM   #1
saba
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
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
 
Old 09-22-2005, 11:56 AM   #2
dcoyaz
LQ Newbie
 
Registered: Sep 2005
Posts: 4

Rep: Reputation: 0
You are using the table parameter right?

-t nat -A ....
 
Old 09-23-2005, 01:48 AM   #3
saba
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
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?
 
Old 09-14-2008, 07:06 PM   #4
navilein
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by saba View Post
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
forward port to another on the same IP 5amYan Linux - Security 2 08-23-2005 11:26 AM
Forward emails to several local users hypernetics Linux - Software 0 11-04-2004 05:25 AM
A way to forward an IP/Port to another system's IP/Port astroboy5714 Linux - Networking 6 01-26-2004 05:45 PM
Port forward help please hanxuerui Linux - Networking 6 05-05-2003 01:20 PM
Forward port port 80 to lan web server dulaus Linux - Networking 9 10-04-2002 03:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration