iptables as gateway and POP3 SMTP ports

view full story

http://serverfault.com – when trying to open the ports 110 and 25 in my iptables for outlook-only users, i cant do it except by forwarding as such: -I FORWARD -i eth0 -s -j ACCEPT -I FORWARD -i eth1 -d -j ACCEPT but doing so allows the rest of the users in my lan to bypass my squid proxy. whats the proper syntax for these forwarding commands to just pen ports 110 and 25? my iptables -L output is: Chain INPUT (policy DROP) target prot opt source destination ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere anywhere (HowTos)