quericy / one-key-ikev2-vpn

A bash script base on Centos or Ubuntu help you to create IKEV2/L2TP vpn.
GNU General Public License v3.0
2.09k stars 710 forks source link

Internet not working #136

Open imnikksingh opened 6 years ago

imnikksingh commented 6 years ago

Hi, Thanks for the script!

I've install script on vultr vps server, vpn connection is working fine but after connected internet is not working. Kindly let me know what things need to update.

Thanks

rockyzhng commented 6 years ago

need enable ipv4_forward or ipv6 in sysctl.

imnikksingh commented 6 years ago

These are already enabled. Maybe its related to iptables. If you know anything please do let me know. Thanks

imnikksingh commented 6 years ago

Also internet isn't working on browser (when i open any website). but I it working for other apps like whatsapp and skype.

imnikksingh commented 6 years ago

Hi @rockyzhng It is working with firewall-cmd, however the 'firewall-cmd' was not installed So I installed it by below command.

apt install firewalld

Thanks

MengmSun commented 5 years ago

@inder1989 Hi I have met the same question of you and I installed the firewall on my VPS later...However it didn't work yet. My system is CentOS 7 and my connection is working fine . Could you tell me which commands you used after installation of firewall or the detailed processing to solve this problem?Thank you very much before.

MengmSun commented 5 years ago

@inder1989 Hi I have solved this problem. My Wi-Fi router did not support VPN.And I turned to 4G it did work. Thanks for your prompt.

imnikksingh commented 5 years ago

Hi @MengmSun ,

Run the below command on server if internet is not working after conneted to vpn, for Digital ocean / VPSSERVER

iptables -I FORWARD 1 -j ACCEPT

@inder1989 Hi I have met the same question of you and I installed the firewall on my VPS later...However it didn't work yet. My system is CentOS 7 and my connection is working fine . Could you tell me which commands you used after installation of firewall or the detailed processing to solve this problem?Thank you very much before.

MengmSun commented 5 years ago

在 2019年2月15日,下午12:55,Inderjit Singh notifications@github.com 写道:

Hi @MengmSun https://github.com/MengmSun ,

Run the below command on server if internet is not working after conneted to vpn, for Digital ocean / VPSSERVER

iptables -I FORWARD 1 -j ACCEPT

@inder1989 https://github.com/inder1989 Hi I have met the same question of you and I installed the firewall on my VPS later...However it didn't work yet. My system is CentOS 7 and my connection is working fine . Could you tell me which commands you used after installation of firewall or the detailed processing to solve this problem?Thank you very much before.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/quericy/one-key-ikev2-vpn/issues/136#issuecomment-463906599, or mute the thread https://github.com/notifications/unsubscribe-auth/AkDNHs0VPsrcLtFGz3EQ77y5iwXSKhfbks5vNj3HgaJpZM4SCHeh.

Thank you very much! I think I have solved it by your prompt.