Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, My LAN is 192.168.160.0 I have a Draytek router 192.168.160.1 and I DMZ to my Ubuntu 9.10 Server (2.6.31-14-generic-pae) which I run a few services on. I have just ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    5

    iptables - adding a 2nd subnet for WiFi?


    Hi,

    My LAN is 192.168.160.0
    I have a Draytek router 192.168.160.1 and I DMZ to my
    Ubuntu 9.10 Server (2.6.31-14-generic-pae) which I run a few services on.

    I have just added a Wireless Card 192.168.3.1, installed DHCPd and HOSTAPd, creating a 2nd subnet 192.168.3.0. The card is working fine as an AP and I now need assistance with adding filtering to IPTABLES.

    I want wireless peers to be able to get a DHCP address and to access my LAN and the internet.

    Help with setting up the filtering, and I believe MASQuerading would be appreciated.

    David

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Look at the rules you have setup for 160 and then copy what you want over to 3 network.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Nov 2009
    Posts
    5
    Many thanks Robert.

    I thought I would need to MASquerade the 163 subnet to get internet access via the DSL Router (192.168.160.2) but I'll give your suggestion a go.

    David

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    MASQ should only be used on the outward facing interface and only MASQ traffic that is leaving.

    Regards
    Robert

    Linux
    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
  •