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.
Well, if you just want to modify the port, you should probably use the REDIRECT statement. It will just redirect the connection to another port to the local machine. Is it not exactly what you want to do?
Well, if you just want to modify the port, you should probably use the REDIRECT statement. It will just redirect the connection to another port to the local machine. Is it not exactly what you want to do?
REDIRECT changes the IP to the local interface. So, the connection is not routed but accepted to the box. That's not what I want. What I want is - whoever (even the box itself) makes a connection to the Internet Proxies via ports 1080 or 8080 will be accessing those proxies via port 80. That's all. So, the IP is not known in advance but I have to change the port only.
If I understand you correctly then you just need to forward ports 1080 and 8080 to port 80 on the same machine?
Couldn't you just set the webserver to listen on ports 1080 and 8080 as well as 80 without any need for forwarding??
Just an idea...
My web server is listening on port 9090 and it is serving the clients in a round-robin manner (only some proxies I added). What I want is when the clients make a direct connection to a specific Internet Proxy that they know, I want the port to be 80 (routing). Just want to change the destination port of the packet without altering the destination IP address.
Sorry, not web server. It is proxy server (squid).
Last edited by dreamprince; 10-17-2006 at 12:46 PM.
What I want is when the clients make a direct connection to a specific Internet Proxy that they know, I want the port to be 80 (routing). Just want to change the destination port of the packet without altering the destination IP address.
Why do you want to change the destination port anyways; As you have mentioned "..to a specific internet proxy that they know" If any of these internet proxy are configured to work on some port apart from 80; what are you going to achieve from changing the dport to 80. It wont work; your clients would'nt be able to connect to such proxies & if that is your aim then why dont you block connections to such ports.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.