All of lore.kernel.org
 help / color / mirror / Atom feed
* Help with stateless firewall
@ 2013-08-12 19:28 Alex Flex
  2013-08-12 21:41 ` /dev/rob0
  2013-08-13  6:56 ` André Paulsberg
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Flex @ 2013-08-12 19:28 UTC (permalink / raw)
  To: netfilter

Hello NetFilter,

Iam working with a stateless firewall to help keep up with DoS and a 
state flood. I have a few doubts about my setup:


a.) When allowing web traffic, is it neecessary to allow port range 
1000:65535 ? i saw that due to this rule sending packets to those ports 
directly respond with a REJECT instead of a DROP which is preffered. Any 
work arround and still have a stateless setup?

b.) What is needed to safely have a default OUTPUT DROP, apparently as 
soon as i change it to that iam unable to access it via ssh, even if I 
add a rule like this: /sbin/iptables -A OUTPUT -p tcp --dport 22 -j ACCEPT


Thanks for your help.
Alex

#!/bin/bash

/sbin/iptables -F
/sbin/iptables -X

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

#ICMP IN
/sbin/iptables -A INPUT -p icmp -s 178.174.50.29/24 -j ACCEPT

#ICMP IN (TRACEROUTE)
/sbin/iptables -A INPUT -p icmp --icmp-type 0 -j ACCEPT
/sbin/iptables -A INPUT -p icmp --icmp-type 11 -j ACCEPT

#ICMP OUT
/sbin/iptables -A OUTPUT -p icmp --icmp-type 8 -j ACCEPT

#DNS RESOLVERS
/sbin/iptables -A INPUT -s 63.15.64.91 -j ACCEPT
/sbin/iptables -A INPUT -s 63.15.64.92  -j ACCEPT

#SSH
/sbin/iptables -A INPUT -p tcp --dport 22 -j ACCEPT


#WEB
/sbin/iptables -A INPUT -p tcp --dport 1000:65535 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 80 -j ACCEPT



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

end of thread, other threads:[~2013-08-13  6:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-12 19:28 Help with stateless firewall Alex Flex
2013-08-12 21:41 ` /dev/rob0
2013-08-12 22:19   ` Alex Flex
2013-08-13  6:56 ` André Paulsberg

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.