Networking Forums

Networking Forums > Computer Networking > Linux Networking > tptable masqurading

Reply
Thread Tools Display Modes

tptable masqurading

 
 
squid admin
Guest
Posts: n/a

 
      07-21-2008, 08:27 AM
i am using 2 isp for internet
one linux box using -( X.X.X.116 public address, 10.2.10.4 is for
local address)

iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X


iptables -A POSTROUTING -t nat -s 10.2.0.0/255.255.0.0 -j MASQUERADE
iptables -t nat -A PREROUTING -s 10.2.0.0/255.255.0.0 -p tcp --dport
80 -j REDIRECT --to-port 8080

service iptables save
service iptables restart

another is only for proxy server X.X.X.115 public address
the proxy



how to write perfect routing

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11