Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 11673

is a user-space application to configure the Linux kernel firewall tables. These tables contain chains of rules defining the treatment of network packets.

3 votes
Accepted

Preventing my rasberry pi 2 from routing traffic over the internet

You can make firewall rules like this; iptables --flush iptables -A INPUT -i lo -j ACCEPT iptables -A INPUT -p icmp --icmp-type 255 -j ACCEPT iptables -A INPUT -m state --state ESTABLISHED,RELATED -j … ACCEPT iptables -A INPUT -p tcp --dport 22 -j ACCEPT iptables -A INPUT -s 192.168.0.0/24 -d 0/0 -p tcp --dport 80 -j ACCEPT iptables -A INPUT -j REJECT iptables -A FORWARD -j REJECT --reject-with icmp-host-prohibited …
user1133275's user avatar
  • 2,216