Hi,
Please can you assist with information on how to set up a route from a Cloud Server to a client/customer router that is located behind the main router that is connecting to Splynx through a PPTP tunnel
Regards,
C
Hi,
Please can you assist with information on how to set up a route from a Cloud Server to a client/customer router that is located behind the main router that is connecting to Splynx through a PPTP tunnel
Regards,
C
Hi, create a file routes in /etc/ppp/ip-up.d#
command :
touch /etc/ppp/ip-up.d/routes
There write these statements :
#!/bin/bash
case “$PPP_REMOTE” in
192.168.100.200)
route add -net 172.16.2.0 netmask 255.255.255.0 $PPP_IFACE
;;
*)
esac
exit 0
Where 192.168.100.200 - IP address of the PPTP-tunnel customer.
172.16.2.0 netmask 255.255.255.0 - this is the route that you need to add
Also add the file routes in /etc/ppp/ip-down.d
command - touch /etc/ppp/ip-down.d/routes
#!/bin/bash
case “$PPP_REMOTE” in
192.168.100.200)
route del -net 172.16.2.0 netmask 255.255.0.0 $PPP_IFACE
;;
*)
esac
exit 0
and don’t forget to:
chmod 755 /etc/ppp/ip-up.d/routes
chmod 755 /etc/ppp/ip-down.d/routes