LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to implement port forwarding using iptables. (https://www.linuxquestions.org/questions/linux-networking-3/how-to-implement-port-forwarding-using-iptables-4175597543/)

sarveshchandra 01-16-2017 12:06 AM

How to implement port forwarding using iptables.
 
Hi,

I need help with port forwarding and iptables, as I have no prior experience in any. Going through the man pages, and, some internet search has not been of much help as yet.

I need to forward incoming ssh requests from a remote machine to a particular local system in my network that sits behind a Squid proxy Server.
The Squid proxy server has the usual two MACs and IP addresses one global, and, one local. The Squid proxy server, that is the server with a global IP address has no existing iptables rules, there are only some entre in the /etc/hosts.allow file to restrict ssh access.

Any help in this matter will be highly appreciated, and, I hope the provided basic information is clear, if not please let me know what more information I need to provide.

TB0ne 01-16-2017 09:24 AM

Quote:

Originally Posted by sarveshchandra (Post 5655541)
Hi,
I need help with port forwarding and iptables, as I have no prior experience in any. Going through the man pages, and, some internet search has not been of much help as yet.

I need to forward incoming ssh requests from a remote machine to a particular local system in my network that sits behind a Squid proxy Server.
The Squid proxy server has the usual two MACs and IP addresses one global, and, one local. The Squid proxy server, that is the server with a global IP address has no existing iptables rules, there are only some entre in the /etc/hosts.allow file to restrict ssh access.

Any help in this matter will be highly appreciated, and, I hope the provided basic information is clear, if not please let me know what more information I need to provide.

Putting "how to forward ssh traffic through proxy server with iptables in linux" into Google yields a LOT of information. The first two hits:

https://www.digitalocean.com/communi...-with-iptables
http://www.systutorials.com/816/port...sing-iptables/

...complete with examples on how to perform this. And further down the first page:
http://unix.stackexchange.com/questi...-http-or-https

....it shows you how to do this via https, again with examples.


All times are GMT -5. The time now is 01:43 AM.