On the server (centos 6.7) a year ago I picked up vpn via pptp. When the light was being cut, or something else was happening, I always had commands that I picked up.

iptables -A INPUT -i eth0 -p tcp —dport 1723 -j ACCEPT

iptables -A INPUT -i eth0 -p gre -j ACCEPT

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

iptables -A FORWARD -i ppp + -o eth0 -j ACCEPT

iptables -A FORWARD -i eth0 -o ppp + -j ACCEPT

service iptables save

service iptables restart

Now one of the departments needs to periodically log into the network of another company on the VPN, they (the other company) set up their own VPN, but I could not get there! But after I loaded the modules, everything worked, and you can connect to them from us (another company)! these lines

modprobe nf_nat_pptp

modprobe ppp-compress-18

modprobe ppp_mppe

But what is the salt, then it is impossible to connect to us from the external channel. Those. it turns out or it works in such a way that you can connect to them (another company), EITHER, on the contrary, from the external (from where you tried, from home, from friends) you can connect to us via VPN. Why is that?

    0