LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Iptables and outlook account through gmail (https://www.linuxquestions.org/questions/linux-networking-3/iptables-and-outlook-account-through-gmail-789164/)

victvishwa 02-15-2010 01:13 AM

Iptables and outlook account through gmail
 
Hi,

Issue : Unable to use gmail account through outlook
What iptables rules that I should put in place

This is my setup

Eth0 – 192.168.1.x - Connected to internet
Eth3 – 10.0.0.47 – Local Lan

Pop.gmail.com – port 995
Smtp.gmail.com – port 465

Thanks
Kasi VPS

hostmaster 02-15-2010 06:29 AM

Post your current iptables configuration.

iptables -t nat -L
iptables -L

victvishwa 02-15-2010 10:46 AM

Currently there is no iptables rules.
I have flushed it using iptables -F and saved it empty.

Macht 02-15-2010 08:52 PM

You will need to create a link between the two interfaces.
I have set up a similar box recently, I used iptables to achieve what I needed.

Can you get to any websites when using your local network Eth3?

hostmaster 02-15-2010 11:26 PM

sysctl -w net.ipv4.ip_forward=1
iptables -I FORWARD -o eth0 -j ACCEPT
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE

copy it in /etc/rc.local so these rules get executed after reboot. You can further customize according to your security needs. See iptables in detail, its a great tool.

victvishwa 02-16-2010 03:12 AM

Let me try this option and keep you posted.

hostmaster 02-18-2010 12:11 PM

So did your problem get solved ?


All times are GMT -5. The time now is 06:33 PM.