Score:0

Can't ping remote IP of PPTP from SSH

ad flag

I have a Centos7 VPS where I have a web server installed, in the same server I've set up a PPTP VPN to communicate with a device that is connected via ethernet in my router.

The device IP is 10.0.0.37 and I can connect to the device from any PC via PPTP local IP which is 10.1.0.2 since the PC and device are connected to the same PPTP VPN as a client. But I'm not able to ping or reach the device in SSH like how I'm able to ping when I'm connected as a VPN client on PC, can someone help me with a fix where I need the webserver able to contact the device? I'm trying to make an API communication from the website to the device via PPTP solution since the router uses dynamic IP and DDNS isn't supported by the router.

PPTP info:

ip a

ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN group default qlen 3 link/ppp inet 45.X.X.X peer 10.1.0.1/32 scope global ppp0 valid_lft forever preferred_lft forever

#service pptpd status

● pptpd.service - PoPToP Point to Point Tunneling Server
   Loaded: loaded (/usr/lib/systemd/system/pptpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2022-03-24 19:14:34 EET; 27s ago
 Main PID: 22077 (pptpd)
   CGroup: /system.slice/pptpd.service
           ├─22077 /usr/sbin/pptpd -f
           ├─22101 pptpd [73.X."THIS IS THE DEVICE IP":D837 - 0000]
           └─22105 /usr/sbin/pppd local file /etc/ppp/options.pptpd 115200 45.X.X.X:10.1.0.1 ipparam 73.X."THIS IS THE DEVICE IP" ...
Mar 24 19:14:55 hostname.domain pppd[22105]: Plugin /usr/lib64/pptpd/pptpd-logwtmp.so loaded.
Mar 24 19:14:55 hostname.domain pppd[22105]: pppd 2.4.5 started by root, uid 0
Mar 24 19:14:55 hostname.domain pppd[22105]: Using interface ppp0
Mar 24 19:14:55 hostname.domain pppd[22105]: Connect: ppp0 <--> /dev/pts/1
Mar 24 19:14:55 hostname.domain pptpd[22101]: GRE: Bad checksum from pppd.
Mar 24 19:14:55 hostname.domain pppd[22105]: peer from calling number 73.X."THIS IS THE DEVICE IP" authorized
Mar 24 19:14:56 hostname.domain pppd[22105]: MPPE 128-bit stateless compression enabled
Mar 24 19:14:59 hostname.domain pppd[22105]: Cannot determine ethernet address for proxy ARP
Mar 24 19:14:59 hostname.domain pppd[22105]: local  IP address 45.X.X.X
Mar 24 19:14:59 hostname.domain pppd[22105]: remote IP address 10.1.0.1```


# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:pptp
ACCEPT     gre  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh
ACCEPT     all  --  10.0.0.0/24          anywhere             state NEW
ACCEPT     all  --  199.1.X.10       anywhere             state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     gre  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere             state NEW
ACCEPT     all  --  anywhere             anywhere             state NEW```
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.