1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Port Forwarding Revisited using IPTABLES

Discussion in 'Tomato Firmware' started by mikester, Mar 25, 2008.

  1. mikester

    mikester Network Guru Member

    Here's what I want to do:

    Prevent users on a small business network from bypassing my router's DNS via static IP settings.

    How? By capturing Port 53 requests to external IP's and forwarding them to my router.

    Example:
    User makes request to 4.2.2.3 port 53
    Capture and forward request to 192.168.0.1 port 53

    I can already forward by IP - I don't want to have long lists of IP forwards - I want to capture the port, not the IP.

    Any ideas on making this work?
     
  2. lexluthor

    lexluthor Network Guru Member

    Well, I just started with Tomato and have been doing a lot of reading, so forgive me if I'm wrong, but I think the Intercept DNS Port on this screen
    http://192.168.1.1/advanced-dhcpdns.asp
    does exactly what you are looking for.
     
  3. mikester

    mikester Network Guru Member

    Very cool...now how do I manually do that with IPTABLES? I want to try this on an IPCOP box...
     
  4. nobugme

    nobugme Network Guru Registered

Share This Page