Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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?

  2. #2
    Linux Guru Rubberman's Avatar
    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!

  3. #3
    How to allow only RELATED,ESTABLISHED TCP/UDP connections for port 53?

  4. $spacer_open
  5. #4
    Linux Guru
    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

  6. #5
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    The Keystone State
    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
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts