Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a debian server, call it A, that is connected as an openvpn client to another network. Server A is also http and email server accepting connections from the internet. Now, one of the servers on the other network, call it B, is connecting to A over the internet; email and http. However those connections fail (timeout) as long as the routing setup on A is to route connections to B via the VPN tunnel.

My guess is that I need some kind of setup that will route replies to incoming connections from B over the internet instead of over the VPN tunnel.

This is the routing table on A:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         UG    100    0        0 eth0     *        U     0      0        0 eth0
B               VPN server UGH   0      0        0 tun0

Any ideas how to solve this? Thanks!

share|improve this question
Who set that metric of 100 for the default route? – ott-- May 17 '13 at 9:43

Sorry for not writing a comment, but my rep is too low for that. Is the connection from B to A to the http, or email service coming through the VPN or through the internet?

If it's coming through the internet, you could bind the outgoing ip address in the services to the external interface

For postfix p.e. with

smtp_bind_address = [external ip address]
share|improve this answer
Thanks for your reply. The connection is coming through the internet. – lonerook May 20 '13 at 8:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.