Answer the question
In order to leave comments, you need to log in
Why did the OpenVPN server stop working?
After trying to install and configure squid on Debian to work with OpenVPN, the latter stopped working. The connection is successful, but there is no traffic.
Executed iptables -F, removed squid, did not help. Unfortunately, I don’t remember the completed iptables line, after which OpenVPN stopped working. How to unlock it?
Answer the question
In order to leave comments, you need to log in
iptables -L will show you all the rules that are active on the system.
most likely they tried to set up a transparent proxy and wrapped everything in a squid.
Command results:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
As I understand it, empty.
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-P PREROUTING ACCEPT
-P OUTPUT ACCEPT
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
Thanks everyone.
Helped iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
Now it remains to let all traffic through squid.
If I'm not mistaken, iptables remembers the rule until reboot, if you didn't explicitly specify it in rc.local, for example - I also have to try openvpn and squid
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question