LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   POSTROUTING or PREROUTING (https://www.linuxquestions.org/questions/linux-networking-3/postrouting-or-prerouting-406876/)

czezz 01-23-2006 06:02 AM

POSTROUTING or PREROUTING
 
Server1:
-eth0 10.3.1.4
-ppp0 x.x.x.x

ServerPROXY:
-etho 10.3.1.8
-ppp0 y.y.y.y


Server1 has set FORWARD in iptables for Telnet i FTP services ( so users from LAN are able to connect those services in the internet )
ServerPROXY has Squid service (PROXY for http only)

All of the hosts in LAN must have set gaytway 10.3.1.4 (eth0 Server1)

What should I do to redirect all connection from LAN on port 80 redirect to serverPROXY 10.3.1.8:8080 ?

I heard that POSTROUTING or PREROUTING rule need to be used
Any suggestions ?

roopunix 01-23-2006 06:38 AM

It is Prerouting.

czezz 01-23-2006 12:42 PM

How exactelly should it looks like ?


All times are GMT -5. The time now is 04:06 AM.