[LARTC] Routing / masqerading advice needed.

Linux Advanced Routing and Traffic Control

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

 



        Hello,

        Have a non-standard routing / masquerading issue to which I still can
not imagine a solution.

        The problem: I need to create several encrypted links to a remote
side - VPN.GALILEO.COM from a single linux machine - a gateway for a new
branch office. The problem comes from the fact that for every link the remote
side assigns me a different address. This way I end up having several
 local interfaces (ppp0,ppp1...) with different addresses that communicate
to the same addres on the other end.

        However, the package (Focalpoint emulator) that I run in several
copies on the SAME computer behind the firewall  has to communicate with the
'SERVER' on the other end every copy via one and only one of those channels,
determined by the login name/address assigned when I create the channel, else
packets are discarded. The emulator uses one port to communicate to the
server, all emulators executing connect() to the same remote port, and of
cource getting an ephemerial port after the connection is accept() ed.

    emulator 1 \          /-gw/ppp0 --encrypted ----\
    emulator 2 -my net--gw/ppp1 -------------------- other end ---- SERVER
    emulator x /         \- gw/ppp* -------------------/


        So, I need to masquerade packets via those interfaces at my gw - no
problem, but how to route them if all they have same destination address, but
packets originating from different copies of the same application should use
different channels?

	If there is a possibility to change the packet DESTINATION address AFTER 
routng is done this may do the job - I will configure my emulators to contact 
the near end of the ppp channel - all they have different addresses, and just 
before delivering packet to the ppp link change the address for the 'SERVER' 
one.

	Another way is somehow to distingish between different copies of the emulator 
and to make different routing tables for them - but not clear how.

        In general, I have to make my gateway lie the other end that every
copy of the emulator runs on a different computer. How?

        Any ideas appreciated, George.




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux