Client(Outlook) <-----> |eth1 PROXY eth0 | <------> Interwebs
How do i manage to do this? Setting the standard policy of all filter tables to ACCEPT doesnt change a thing, so is prerouting the way to go?
You can use either a SOCKS proxy server or iptables and NAT for this.
I assume that your client host is within a local network and uses private IP addresses such as 10.0.0.0/8, 172.28.0.0/12 or 192.168.0.0/16.
First step is to enable IP forwarding:
Next step is to use iptables to activate NAT:
That's a really simple setup and I recommend to take a closer look into iptables to provide security to your LAN as well as access for your LAN to the Internet.
To limit access only to certain protocols (here SMTP, POP3, IMAP) you can use following setup:
|show 2 more comments|