HELP Ip tables configuration for Outlook express allowing SSL port 25 and 995
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Wait, I had interpreted this as you wanting to allow connections to this box on ports 25 and 995. That doesn't seem like it's the case now, though. This iptables box is doing NAT, right? So do you want to allow outbound (from LAN to WAN) connections to ports 25 and 995, or do you need to forward inbound connections to hosts on the LAN side? Please clarify.
Wait, I had interpreted this as you wanting to allow connections to this box on ports 25 and 995. That doesn't seem like it's the case now, though. This iptables box is doing NAT, right? So do you want to allow outbound (from LAN to WAN) connections to ports 25 and 995, or do you need to forward inbound connections to hosts on the LAN side? Please clarify.
Hello sir thank you for replying.
I want my client computer to access the port 25 and 995 only. SO that they can Download the outlook express message using my proxy as gateway.
for example
Private 192.168.1.3 Public IP 202.xx.xx.xx <==-- This is my proxy pc where my iptables reside it has public IP also
192.168.1.10 <==-- This is my Client computer that uses outlook express port 25 and 995 SSL. I use the 192.168.1.3 as a Gateway and I can telnet to ports 25 and 995 but i cant download emails.
Im thinking it has something to do with IP talbes the outlook thingy..
Im only allowing ports 25 and 995 to the client to prevent them using P2P downloaders.
I got no problem downloading OUTLOOK when i use the BOSS CONFIG
# BOSS IP -A POSTROUTING -s PRIVATEIP -j SNAT --to PUBLICIP
-A POSTROUTING -s 192.168.1.101 -j SNAT --to xxx.xx.xx.xx
PRIVATE LAN
Boss interface - No Restrictions
Client/Ordinary employee Interface - Ports Allowed is 25 and 995 only. But use squid for http web browsing
Both of these interfaces are connected to my proxy server In private Lan. in which they use my proxy server as a gateway to connect outside.
Last edited by KarlRojero; 11-04-2009 at 11:22 PM.
PRIVATE LAN
Boss interface - No Restrictions
Client/Ordinary employee Interface - Ports Allowed is 25 and 995 only. But use squid for http web browsing
Both of these interfaces are connected to my proxy server In private Lan. in which they use my proxy server as a gateway to connect outside.
Okay so you've got three interfaces (two LAN and one WAN). You want packets arriving on one of the LAN interfaces to get forwarded, without restrictions. On the other LAN interface, you want only TCP packets with destination port 25 or 995 (and a specific destination IP) to get forwarded, and you want Squid to handle the rest. Is this correct?
Okay so you've got three interfaces (two LAN and one WAN). You want packets arriving on one of the LAN interfaces to get forwarded, without restrictions. On the other LAN interface, you want only TCP packets with destination port 25 or 995 (and a specific destination IP) to get forwarded, and you want Squid to handle the rest. Is this correct?
Yes sir this is correct.. I got no problem with squid handling the two interfaces. I mean both can connect to it.
The LAN interface without restriction is OK. Meaning i can download messages from outlook.
Quote:
# BOSS IP -A POSTROUTING -s PRIVATEIP -j SNAT --to PUBLICIP
-A POSTROUTING -s 192.168.1.101 -j SNAT --to xxx.xx.xx.xx
Hence the other LAN interface with restriction that uses port 25 and 995 only is the one i had a problem with.
Quote:
#USER PC -A POSTROUTING -s PRIVATEIP -p tcp --dport 25 -j SNAT --to PUBLICIP
-A POSTROUTING -s 192.168.1.61 -p tcp --dport 25 -j SNAT --to xxx.xx.xx.xx
-A POSTROUTING -s 192.168.1.61 -p tcp --dport 995 -j SNAT --to xxx.xx.xx.xx
Thank you so much for your patience I am newbie to this one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.