M
M
MOLOD2020-04-14 20:03:24
VPN
MOLOD, 2020-04-14 20:03:24

How to fix the problem of not working internet when connecting to VPN PPTP?

Configured on centos 7 server pptpd
added to iptables

-A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT
-A INPUT -i eth0 -p gre -j ACCEPT


When connected to pptp, it connects and there is a connection, but the Internet stops working, apparently the traffic is not wrapped in the pptp network,
how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2020-04-14
@Drno

In the server settings, you need to enable packet routing.
nano /etc/sysctl.conf
allow exchange between network interfaces, add
net.ipv4.ip_forward = 1
Taken from here
www.unitec.com.ua/nastrojka-pptp-vpn-na-centos-7
Firewall -
firewall-cmd --permanent --add-masquerade
firewall-cmd --zone=public --add-port=1723/tcp --permanent
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p gre -j ACCEPT
firewall -cmd --permanent --direct --add-rule ipv6 filter INPUT 0 -p gre -j ACCEPT
firewall-cmd --reload
Taken from here
https://sysadminblog.ru/linux/2018/07/11/prostoy-p ...

D
Dimonchik, 2020-04-14
@dimonchik2013

route add default gw metrics etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question