> i have a dns server behind my firewall. what would be the right code
> to allow dns query from and to my dns server ? the code below seems to
> work but is there a shorter one ? :)
>
>>> ipchins -A input -p tcp -s 0.0.0.0/0 -d x.x.x.y 53 -j ACCEPT
>>> ipchins -A input -p udp -s 0.0.0.0/0 -d x.x.x.y 53 -j ACCEPT
>>> ipchains -A input -p tcp -s 0.0.0.0/0 53 -d x.x.x.y -j ACCEPT
>>> ipchains -A input -p udp -s 0.0.0.0/0 53 -d x.x.x.y -j ACCEPT
>>>
Try this:
ipchains -A input -p tcp -s 0/0 53 -d x.x.x.y 53 -j ACCEPT
ipchains -A input -p udp -s 0/0 53 -d x.x.x.y 53 -j ACCEPT
You can specify your source port and destination ports simultaneously, I
think. :)
--------------------------------------
Gino LV. Ledesma
Ateneo Cervini-Eliazo Networks (ACENT)
email : [EMAIL PROTECTED]
web : http://cersa.admu.edu.ph/
phone : (63)(2) 426-6001 ext. 5925/5904
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]