LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Connecting to services not hosted locally.

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Connecting to services not hosted locally.
From: Ludo Stellingwerff <ludo@xxxxxxxxxxxxx>
Date: Sun, 02 Oct 2005 12:19:44 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> The way I described it, it would seem so, but I was actually
> talking about any virtual service in general. I believe I'm very
> close to a solution though.

Dan, try it like this: (without you're routing table hacks)

#iptables -A PREROUTING -t nat -i lo -p tcp -d <local_ip> --dport 25
- -j ROUTE --oif  eth0

I assume you have fixed the ARP problems. Therefor the above ROUTE
target should work.
If it doesn't I'll have to think of a solution using the "ip rule"
command in combination with firewall marking.

Please report success:)

Greetings,
Ludo.

- --
Ludo Stellingwerff

Boskoop, The Netherlands
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDP7Q/OF3sCpZ+AJgRAo8xAJ9m+SJ6RCfPprcZHhjgVoglnTlukwCgunOy
bO7WsljzjRmx56YbqDdWhK4=
=CGc+
-----END PGP SIGNATURE-----


<Prev in Thread] Current Thread [Next in Thread>