Hi All,
I am planning to configure my Linux box as Gateway and Proxy server on my network. but I have some doubt
Plz help me to solve this query.
My
LAN interface : eth1 (IP : 192.168.1.100/255.255.255.0) -----My LAN Network range : 192.168.1.0/255.255.255.0
My
WAN interface : eth0 (IP : 122.169.X.X/255.255.255.0) -- Connected to Internet.
Squid/Firewall Server IP : 192.168.1.100/255.255.255.0 .......(I will use IPTABLES to do my Filtering and NATing work )
#I am creating this rules for setup this system as a router for Rest of LAN
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPTMy Query : 1) What is Gateway address for eth1 ?
2) Which interface Squid Server listen ? eth0 or eth1 ? Which IP 192.168.1.100 or 122.169.X.X ?
3) If any Messenger traffic I want to open where to configure in Squid or Iptables for that port like Gtalk, MSN.
4) How to forward some LAN application as Live application. (If I want access 192.168.1.15:3003 application from outside with 122.169.X.X : 3009 ) How to do with Iptables.
5) Can I setup Transpernt Proxy with above condition ? If yes What is IPTABLES Rules I know Squid configuration part for transperent proxy.
Thanks,
Avin Tokade