0

I hava one pptp gateway(192.168.1.1), and one pptp linux client(192.168.1.2), and one pptp windows

client(192.168.1.3), When gateway receives response packets of 192.168.1.3 , can i forward these

packets to 192.168.1.2?

larry
  • 4,037
  • 9
  • 36
  • 42
  • 1
    What you're describing is not really routing if they're all on the same subnet. Can I ask what you're trying to accomplish? There's (likely) a different/better way to achieve what you're trying to do. – gravyface Nov 28 '10 at 03:09
  • If the IPs have the same 192.168.1.0/24 prefix does not always mean they are in the same VLAN. You can have PPP interfaces with /32 prefixes. – Mircea Vutcovici Nov 28 '10 at 04:42
  • @gravyface, that's my problem http://serverfault.com/questions/203324/how-to-forward-packets-from-ppp-interface – larry Nov 28 '10 at 07:04
  • gravyface: it is still be routing due to all packets would go over point-to-point channel in despite of what net mask assigned to peers. – poige Feb 01 '11 at 05:29

2 Answers2

2

You can't but your router could. :-) Just be sure to enable it doing so: sysctl -w net.ipv4.ip_forward=1

poige
  • 9,448
  • 2
  • 25
  • 52
0

It should be an option in the PPTP server to allow the clients to inter-communicate. I suggest to use a better/secure VPN solution like OpenVPN, etc.

Mircea Vutcovici
  • 17,619
  • 4
  • 56
  • 83