April 29, 2024, 01:52:06 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: PORT 25 and 110 masquerade  (Read 3533 times)

Offline h1j4ck3r

  • New Member
  • Posts: 1
PORT 25 and 110 masquerade
« on: June 09, 2004, 12:09:30 AM »
Im using Squid, and I can't access the POP3 and SMTP from my client using outlook express !

I know i must use masquerade at IPTables but i dont know the right syntax !


Does anyone can help me ?

Thx !

H1·J4CK3R

Offline RazaMetaL

  • Linux Noob !
  • *
  • Posts: 14
PORT 25 and 110 masquerade
« Reply #1 on: June 11, 2004, 02:37:50 PM »
Supposing that:

192.168.0.0/24 is you LAN, and eth0 is the WAN device, you need iptables as root:

/sbin/iptables  -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j MASQUERADE