Results 1 to 3 of 3

Thread: hardware router + iptables

  1. #1
    Join Date
    Jul 2006
    Beans
    103

    hardware router + iptables

    My net setup is as follows:
    Code:
    adsl modem --- adsl router --- PC1
                                |
                                |
                                -- PC2
    The router's built-in firewall is minimal, so it does not allow for complex filtering rules like iptables does.
    My question is: is it possible to setup iptables so it does the filtering in PC1 and PC2 instead of filtering at the router level?

    Thanks for any answers

  2. #2
    Join Date
    Nov 2009
    Location
    Madrid, Spain
    Beans
    1,403
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: hardware router + iptables

    Quote Originally Posted by Roque View Post
    My net setup is as follows:
    Code:
    adsl modem --- adsl router --- PC1
                                |
                                |
                                -- PC2
    The router's built-in firewall is minimal, so it does not allow for complex filtering rules like iptables does.
    My question is: is it possible to setup iptables so it does the filtering in PC1 and PC2 instead of filtering at the router level?

    Thanks for any answers
    If PC1 and PC2 are Linux machines, they will run iptables and you will be able to add the rules you want. But PC1 and PC2 are located in your LAN and they have private IP addresses. Your router is the only responsible for the NAT function and you can not define rules related to NAT in your computers PC1 or PC2.

    Another interesting option would be to check if your ADSL router is able to run a Linux firmware like DD-WRT or Tomato.
    Last edited by lmarmisa; August 20th, 2011 at 06:56 AM. Reason: Comment about NAT

  3. #3
    Join Date
    Jul 2006
    Beans
    103

    Re: hardware router + iptables

    Thanks Imarmisa. Yes they are Linux PCs, so you say I should be able to add non-NAT filter rules to PC1 and PC2 for opening/closing certain ports, for example?
    Because it seems that I can't use iptables to filter ping requests for PC1 or PC2 (the router's firewall seems to take exclusive care of this)

    Regarding your Linux firmware comment, this is not an option for now.

Tags for this Thread

Bookmarks

Posting Permissions

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