All of lore.kernel.org
 help / color / mirror / Atom feed
* opening port for SSH
@ 2005-12-08 13:43 Edwin Kapauni
  2005-12-08 14:23 ` /dev/rob0
  2005-12-09 14:23 ` Georgi Alexandrov
  0 siblings, 2 replies; 12+ messages in thread
From: Edwin Kapauni @ 2005-12-08 13:43 UTC (permalink / raw)
  To: netfilter

 From the recent thread 
<http://www.spinics.net/lists/netfilter/msg33021.html> I have adopted 
this ruleset for a standalone computer.

Now, I need some help teaching me how to open ports for SSH and VoIP.
That shouldn't be too difficult, right?

######################### start ###########################


iptables -F
iptables -X
iptables -Z
iptables -t nat -F
iptables -t nat -X
iptables -t nat -Z
iptables -t mangle -F
iptables -t mangle -X
iptables -t mangle -Z


iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT


iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -p icmp --icmp-type 3 -j ACCEPT
iptables -A INPUT -p icmp --icmp-type 11 -j ACCEPT
iptables -A INPUT -p icmp --icmp-type 12 -j ACCEPT
iptables -A INPUT -p tcp --syn --dport 113 -j REJECT --reject-with tcp-reset


############################# end #################################

Thanks for any help.



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2005-12-14 22:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-08 13:43 opening port for SSH Edwin Kapauni
2005-12-08 14:23 ` /dev/rob0
2005-12-09 14:23 ` Georgi Alexandrov
2005-12-09 14:42   ` myhapwcforever
2005-12-09 15:37     ` Georgi Alexandrov
2005-12-14 16:02       ` Edwin Kapauni
2005-12-14 17:28         ` Rob Sterenborg
2005-12-14 17:39           ` Bjørn Ruberg
2005-12-14 20:36             ` Nick Drage
2005-12-14 22:06               ` Bjørn Ruberg
2005-12-14 20:46             ` Georgi Alexandrov
2005-12-10 14:43   ` myhapwcforever

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.