V
V
val2015-07-10 14:57:37
linux
val, 2015-07-10 14:57:37

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

4 answer(s)
M
Max, 2015-07-10
@MaxDukov

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.

V
val, 2015-07-10
@ValentineS

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.

R
Ruslan Fedoseev, 2015-07-10
@martin74ua

sysctl -a | grep net.ipv4.ip_forward
says what?

C
chegivarchik, 2015-07-11
@chegivarchik

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 question

Ask a Question

731 491 924 answers to any question