Chad Vogelsong on 10 Apr 2007 12:15:59 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

RE: [PLUG] What is the best way to create a tunnel or a forward?iptables?


Marc,

Can't you just SSH or VPN into the server that you are hosting their e-mail on?

If they have a business level internet package, port 25 should no be blocked.  Talk to their ISP about that.  If they have a consumer level package, tough luck.

It would be trivial to create an iptables forward rule to forward mailserver:2525 to mailserver:25.  Make the rule on the router/firewall something like this:

iptables -A FORWARD -i eth0 -p tcp --sport 2525 --dport 25 -d mailserver_IP -j ACCEPT

Assuming that eth0 is the router/fw external interface.  YMMV.

Chad


 I'm hosting a clients email on my server.  Something went wrong with their router and it's blocking port 25.  I won't have the time to make the long trip up to fix it for them for a while, so I was thinking about maybe openning up a higher port on the same server, and just tunneling that to port 25, and it will be easy enough for me to walk them through changing their outgoing port in their email software.  What is the best way to pull this off?  This is just a temporary solution so I don't lose them!



Get your own web address.
Have a HUGE year through Yahoo! Small Business.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug