P
P
PlatinumArcade2012-11-09 21:56:12
System administration
PlatinumArcade, 2012-11-09 21:56:12

iptables for teapot: open outgoing port 80

I, the matter is that while it is weak in the iptables setup. Before that, the caliper helped all the time. Now everything is in my inexperienced hands...

VPS stubbornly refuses to connect to remote hosts on port 80. Although the policies in iptables seem to be ACCEPT everything:



Accordingly, wget cannot reach the files either.

I tried to add a couple of rules for 80 ports - it still does not connect.
iptables -A INPUT -p tcp -m tcp --sport 80 -j ACCEPT
iptables -A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT


When iptables is temporarily disabled, everything is fine.

At the same time, the ping on ya.ru passes. And what is this NFQUEUE. I can't google anything -(

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anastasia_K, 2012-11-09
@PlatinumArcade

Delete the rule in the INPUT chain with the target NFQUEUE
iptables -D INPUT 1

N
Nikolai Turnaviotov, 2012-11-10
@foxmuldercp

to begin with, add the passage of packets to already initiated connections.
here is one good manual outdated in places, but the ideas do not change www.opennet.ru/docs/RUS/iptables/

G
galaxy, 2012-11-10
@galaxy

show it to the heap
iptables -L -n -t nat
iptables -L -n -t mangle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question