LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-23-2012, 08:30 AM   #1
mmvika
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
virtual switch with ppp connections


I have setted up a VPN server (with pptpd).
And now I want to make a virtual switch with 2 or more PPP connections.

For example
------------
ppp0 - ip 192.168.0.1
ppp1 - ip 192.168.0.2
ppp2 - ip 192.168.0.3
ppp3 - ip 192.168.0.4
(The ip addresses are fixed (so user1 has ip 192.168.0.1, user2 192.168.0.2, ...) but I don't know what ppp number they will have, because if user2 logs in first then he get ppp0.)

ppp0 need to be connected to ppp2, so all traffic that comes from ppp0 goes directly to ppp2.

I made some rules with iptables, that works fine when we stay in the same ip-range. But it can be that the traffic that goes from ppp0 to ppp2 has a different range than the ip address from the ppp connection (for example 192.168.1.x)

So I like to use my vpn server as 'switch' between 2 (or more) networks:
network 1 <---> VPN client <--.internet.--> VPN server <--.internet.--> VPN client <---> network 2

Can someone help me with the configuration?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ppp connections chola Linux - Newbie 1 08-25-2011 01:23 AM
iptables rules for 2 ppp connections linderox Linux - Networking 1 11-07-2007 12:19 PM
Muliple simultaneous PPP connections manassehkatz Linux - Networking 1 05-15-2005 06:36 PM
pppoe: multiple ppp connections? nic777 Linux - Networking 3 03-21-2005 03:53 AM
ppp connections eranb2 Linux - Networking 3 02-02-2005 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration