Linux Netfilter discussions
 help / color / mirror / Atom feed
* Quick help with stateless firewall
@ 2013-06-15 23:38 Alex Flex
  2013-06-15 23:50 ` Bryan Harris
  2013-06-17  7:23 ` André Paulsberg
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Flex @ 2013-06-15 23:38 UTC (permalink / raw)
  To: netfilter

Hello,

I have the following simpel stateless firewall... the issue is iam not 
able to send ICMPs queries from within the machine. What could I modify 
or add for this to be able to happen .  Also iam only intending to run a 
HTTP service and DNS service is it fine the way it is?

Also, I intend to keep the script stateless not wanting to use conntrack 
at all.

Thanks
Alex


#!/bin/bash

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

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

#Accept SSH
/sbin/iptables -A INPUT -p tcp -m tcp -s 204.199.62.74 --dport 22 -j ACCEPT

/sbin/iptables -A INPUT -p tcp --dport 1000:65535 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 80 -j ACCEPT
/sbin/iptables -A INPUT -p udp --dport 53 -j ACCEPT
/sbin/iptables -A INPUT -p tcp --dport 53 -j ACCEPT



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

end of thread, other threads:[~2013-06-17  7:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-15 23:38 Quick help with stateless firewall Alex Flex
2013-06-15 23:50 ` Bryan Harris
2013-06-16  1:17   ` Neal Murphy
2013-06-17  7:23 ` André Paulsberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox