From: Alex Flex <aflexzor@gmail.com>
To: netfilter@vger.kernel.org
Subject: Quick help with stateless firewall
Date: Sat, 15 Jun 2013 17:38:47 -0600 [thread overview]
Message-ID: <51BCFB07.3060408@gmail.com> (raw)
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
next reply other threads:[~2013-06-15 23:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-15 23:38 Alex Flex [this message]
2013-06-15 23:50 ` Quick help with stateless firewall Bryan Harris
2013-06-16 1:17 ` Neal Murphy
2013-06-17 7:23 ` André Paulsberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51BCFB07.3060408@gmail.com \
--to=aflexzor@gmail.com \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox