Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
How to allow only RELATED,ESTABLISHED TCP/UDP connections
i got advice to Only allow RELATED,ESTABLISHED TCP/UDP connections for other ports such as 53 (DNS).
so i want to ask what command i need to use to do this for port 53 on linux with iptables?
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
What you are trying to accomplish is not clear. Please try to explain further what your aims are.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
How to allow only RELATED,ESTABLISHED TCP/UDP connections for port 53?
- Join Date
- Dec 2013
- Victoria, B.C. Canada
I presume you're asking about iptables and not wanting to rewrite the kernel? It does make it easier for people to be helpful if you're more explicit in your ask.
DNS is a bad example to choose - it don't think it has RELATED ports. For the protocols that do iptables uses helper modules. I'm not an iptables expert but here's some info that might help: Netfilter Helpers
RELATED,ESTABLISHED only refer to TCP connections. UDP is a connection-less protocol. That being said it would be very helpful to know what your end goal is here as Rubberman had asked. This will get you what you exactly need to do to accomplish the task you are trying to complete with the least amount of down time.
The adventure of a life time.
Linux User #296285