There are 2 servers. first vpn server, second vpn client.
Each server has a bridge - vmbr22.
---
First server (PPTP Server)
auto vmbr22
iface vmbr22 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
>ip a
133: vmbr22: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether a2:ef:03:9d:2c:ce brd ff:ff:ff:ff:ff:ff
inet 10.10.10.1/24 brd 10.10.10.255 scope global vmbr22
valid_lft forever preferred_lft forever
inet6 fe80::a0ef:3ff:fe9d:2cce/64 scope link
valid_lft forever preferred_lft forever
138: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN group default qlen 3
link/ppp
inet 10.10.10.250 peer 10.10.10.239/32 scope global ppp0
valid_lft forever preferred_lft forever
------------------
Second server(PPTP client):
auto vmbr22
iface vmbr22 inet static
address 10.10.10.3
netmask 255.255.255.0
bridge-ports ppp0
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
auto ppp0
iface ppp0 inet ppp
provider connectTonode1
>ip a
113: vmbr22: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether 0a:a1:95:28:e8:ae brd ff:ff:ff:ff:ff:ff
inet 10.10.10.3/24 brd 10.10.13.255 scope global vmbr22
valid_lft forever preferred_lft forever
inet6 fe80::8a1:95ff:fe28:e8ae/64 scope link
valid_lft forever preferred_lft forever
114: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN group default qlen 3
link/ppp
inet 10.10.10.239 peer 10.10.10.250/32 scope global ppp0
valid_lft forever preferred_lft forever
--------------------------------
LCX container:
~# ping 10.10.10.1
PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data.
From 10.10.10.200 icmp_seq=1 Destination Host Unreachable
From 10.10.10.200 icmp_seq=2 Destination Host Unreachable
From 10.10.10.200 icmp_seq=3 Destination Host Unreachable
^C
--- 10.10.10.1 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 108ms
pipe 4
---
VPN is connected OK, "node1<>node2" ping is OK
---
How share network on LCX - in all nodes
Each server has a bridge - vmbr22.
---
First server (PPTP Server)
auto vmbr22
iface vmbr22 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge-ports none
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
>ip a
133: vmbr22: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether a2:ef:03:9d:2c:ce brd ff:ff:ff:ff:ff:ff
inet 10.10.10.1/24 brd 10.10.10.255 scope global vmbr22
valid_lft forever preferred_lft forever
inet6 fe80::a0ef:3ff:fe9d:2cce/64 scope link
valid_lft forever preferred_lft forever
138: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN group default qlen 3
link/ppp
inet 10.10.10.250 peer 10.10.10.239/32 scope global ppp0
valid_lft forever preferred_lft forever
------------------
Second server(PPTP client):
auto vmbr22
iface vmbr22 inet static
address 10.10.10.3
netmask 255.255.255.0
bridge-ports ppp0
bridge-stp off
bridge-fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
auto ppp0
iface ppp0 inet ppp
provider connectTonode1
>ip a
113: vmbr22: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000
link/ether 0a:a1:95:28:e8:ae brd ff:ff:ff:ff:ff:ff
inet 10.10.10.3/24 brd 10.10.13.255 scope global vmbr22
valid_lft forever preferred_lft forever
inet6 fe80::8a1:95ff:fe28:e8ae/64 scope link
valid_lft forever preferred_lft forever
114: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN group default qlen 3
link/ppp
inet 10.10.10.239 peer 10.10.10.250/32 scope global ppp0
valid_lft forever preferred_lft forever
--------------------------------
LCX container:
~# ping 10.10.10.1
PING 10.10.10.1 (10.10.10.1) 56(84) bytes of data.
From 10.10.10.200 icmp_seq=1 Destination Host Unreachable
From 10.10.10.200 icmp_seq=2 Destination Host Unreachable
From 10.10.10.200 icmp_seq=3 Destination Host Unreachable
^C
--- 10.10.10.1 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 108ms
pipe 4
---
VPN is connected OK, "node1<>node2" ping is OK
---
How share network on LCX - in all nodes
Last edited: