[ create a new paste ] login | about

Link: http://codepad.org/R6mxYvZ9    [ raw code | fork ]

Plain Text, pasted on Jan 27:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
sudo iptables --flush

sudo iptables -P INPUT ACCEPT
sudo iptables -P OUTPUT ACCEPT

# Allow loopback
sudo iptables -I INPUT 1 -i lo -j ACCEPT

# Allow DNS
sudo iptables -A OUTPUT -p udp --sport 53 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 53 -j ACCEPT

sudo iptables -A OUTPUT -p tcp -d 192.241.185.65 --sport 80 -j ACCEPT
sudo iptables -A INPUT -p tcp -s 192.241.185.65 --dport 80 -j ACCEPT

# Drop everything
sudo iptables -P INPUT DROP
sudo iptables -P OUTPUT DROP


Create a new paste based on this one


Comments: