LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-23-2006, 06:02 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
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 ?
 
Old 01-23-2006, 06:38 AM   #2
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
It is Prerouting.
 
Old 01-23-2006, 12:42 PM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
How exactelly should it looks like ?
 
  


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
mark set on PREROUTING stays until POSTROUTING? eantoranz Linux - Networking 3 07-26-2005 05:50 PM
Iptables postrouting question phatboyz Linux - Networking 8 01-31-2005 01:58 PM
POSTROUTING just stopped? ryedunn Linux - Networking 9 01-10-2005 09:49 PM
kmyfirewall & dynamic IP for POSTROUTING SNAT mpw Linux - Software 0 05-05-2004 07:12 AM
iptables POSTROUTING doesn't match local-process replies. bentz Linux - Networking 3 03-10-2004 06:34 PM

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

All times are GMT -5. The time now is 06:37 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