Iptables forwarding to a second public IP address. Possible?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The reason we need to go to the openswan server first rather than a direct connection to the public IP address is that the client doesn't want to modify or add any new servers on their site and the client terminals are not to have any internet access except for certain sites (I've setup a squid proxy for that).
I only have control over the openswan server. It has one ethernet card (eth0). If this is too complicated, perhaps someone can help we with a simpler situation where I send tcp packets to One public IP address (no IPSEC) which then gets forwarded to a second public IP address on a different server. Any help would really be appreciated.
The distribution used is FC6
Thank you
Last edited by dorthensensens; 05-26-2007 at 02:51 PM.
From my limited experience w/ iptables, I'd say "Probably yes."
The key is the FORWARD table. The Q is if you have the inclination to do the learning curve.
What resources have you already discovered on the web?
I've searched through a few years worth of openswan mail lists posts and most people are dealing with internal port/ip forwarding to various class c subnets.
I've followed various online tutorials on iptables. The howto's that seem to almost do what I would like deal with NAT'd networks which, again, does not seem to help me (although I may simply be misunderstanding what I am to understand).
I will no try to see if I can find a detailed resource of the FORWARD tables unless of course someone has a link to a reputable location.
I have a similiar situation. I added a rules for each step. But still can not port forward. I am using one nic on a public IP. Need to forward to another public IP.
Quote:
Originally Posted by dorthensensens
I go this working thanks to
The info that pointed me to the right direction was that forwarded packets required the following "path":
I have a similiar situation. I added a rules for each step. But still can not port forward. I am using one nic on a public IP. Need to forward to another public IP.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.