Dear Sir,

How can I make an iptables rule that will accept connections (UDP) coming from
outside that originated from Internal Network Traffic. Because UDP isn't
stateful. I still need to create an incoming rule for DNS.

Below is my example Iptables rules

*filter
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:ports - [0:0]
:OUTPUT ACCEPT [0:0]
:all - [0:0]
# ping
-A INPUT -p icmp -j REJECT --reject-with icmp-net-unreachable
# test
-A INPUT -j all
# test1
-A all -p tcp -m tcp -m multiport -s 192.168.1.12 -d 192.168.0.31 -j ACCEPT
--dports 22,80,10000
# udp-dns - without this. i cannot resolve my internal network to e.g.
yahoo.com
-A all -p udp -m udp --sport 53 -j ACCEPT
# all
-A all -j DROP
# all
-A OUTPUT -j ACCEPT
COMMIT

Thank you and more power,
Joey


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to