Hello guys, Im trying to setup a few simple rules
Code:
root@washington:~# iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
root@washington:~# iptables -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
root@washington:~# iptables -P INPUT DROP
root@washington:~# iptables -P OUTPUT DROP
root@washington:~# iptables -P FORWARD DROP
root@washington:~# iptables -A INPUT -i lo -j ACCEPT
root@washington:~# iptables -A OUTPUT -o lo -j ACCEPT
root@washington:~# iptables -A INPUT -p tcp --dport 22 -j ACCEPT
root@washington:~# iptables -A OUTPUT -o eth0 -p tcp --dport 80 -j ACCEPT
root@washington:~# iptables -A OUTPUT -o eth0 -p udp --dport 53 -j ACCEPT
root@washington:~# iptables -A OUTPUT -o eth0 -p tcp --dport 3306 -j ACCEPT
root@washington:~# wget google.com
--2013-05-25 12:59:52-- http://google.com/
Resolving google.com (google.com)... 173.194.43.8, 173.194.43.14, 173.194.43.6, ...
Connecting to google.com (google.com)|173.194.43.8|:80... failed: Connection timed out.
Connecting to google.com (google.com)|173.194.43.14|:80... failed: Connection timed out.
And its giving me this error in all output connections, someone understand why? In another ubuntu 12.04 vps its working well, but recently i've bought a softlayer vps and its buggyng.
Bookmarks