IP tables are randomly blocking Internet connection when using open VPN
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Would you suggest that I just installed the package and that's it? I cant really figure out how much of the setup on this page I should do.
Perhaps I should only do the part where I specify the interface.I only have one network interface on my raspberry.so should it look like this:
Interface=eth0
Using DNSmasq will not fix your outbound DNS issue. Only that iptables rule I posted would. It was honest but incorrect advice based on the logs you posted.
Now the rules have been added , and the system restarted!
Now I'll just cross my fingers and hope it works.I will report back in a couple of days and let you know if it worked .thanks for all your help so far!
Okay the same problem just happened again. My system has been running for about six hours and it seems that the same problem occurred again. I have made a log of file and:
Code:
iptables -L -n
I have exchanged my VPN service IP addresses with: xxx.xxx.xxx.xxx
I hope this makes sense to you please tell me if you need anything else to troubleshoot the problem.again thanks a lot for your time and help!
icmp is after your output reject. Second, udp outbound does not jump to ACCEPT like all the other rules. Looking back I gave you a bad rule because I forgot to add -j ACCEPT. I also should not have added state to that rule so you should change it to look like the following.
Right.I have added the icmp rules, and the new rule you gave me, before the output reject rule. Nothing more to do now then wait. I will let you know if it worked!
Okay here is an update after three days. I can happily report that my problem has been solved.the connection is Steady and it has not been necessary to restart my system.so I would like to say thanks to all who contributed in helping me solve this. and a special thanks to sag47 for actually solving my problem!
Once again, this proves that linux questions is filled with experts!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.