Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Setup WiFi DMZ

I want to setup a DMZ on my 3rd NIC port.  I need to have a wifi DMZ for my TiVo to connect to the internet.  I had this working okay by plugging my linksys wifi into the astaro DMZ port and I setup DHCP on Astaro.  DHCP was disabled on the linksys.  The problem with this setup is my kid's friends would come over with their iTouch and other toys and automatically connect to the DMZ and use up my 10 Astaro licenses. To get around this, I turned off DHCP on the astaro and turned it on in the linksys, but I can't get it to work.  Here's my setup:

Interface: External WAN - goes to my cable modem
  Type: Cable Modem (DHCP)

Interface: Internal (my main home LAN and works great)
  Type: Ethernet Standard
  Address: 192.168.116.6
  Default GW: unchecked
  Default GW IP: 0.0.0.0  

Interface: DMZ1   (this is the one I am trying to get working)
  Type: Ethernet Standard
  Address: 192.168.117.1
  Default GW: unchecked
  Default GW IP: 0.0.0.0  

Astaro DHCP on DMZ1
  Range Start: 192.168.117.2
  Range End:  192.168.117.2
  DNS Server 1: 192.168.117.1
  Default GW: 192.168.117.1
  Wins Type: B-Node

I set this DHCP up in Astaro with a range of 1 because the linksys assumes the "router" is going to give it an IP.  Just like it would if the Linksys was connected to a cable modem.  I don't know if this is the right approach.

I have a cable going from the Astaro DMZ port to the Linksys Internet port.
Assigned Linksys IP: 192.168.117.7
On the Linksys I have DHCP enabled: 192.168.117.10 - 192.168.117.20

The linksys is getting the IP 192.168.117.2 (which normally would be a WAN IP) and default gateway from Astaro, but I can't connect to the internet.  I tried changing the default gateway in the DMZ1 from 192.168.117.1 to 192.168.116.6 (same as the other interface), but this didn't work.  I don't even know if you can jump across subnets like this.

What am I doing wrong?


This thread was automatically locked due to age.
Parents
  • Did you setup a Masquerading rule on firewall for the DMZ?
    e.g. DMZ->EXTERNAL

    And packetfilter rules to allow traffic out?

    Barry
  • Yes, I have two rules.  First isolates DMZ from my LAN, 2nd lets DMZ out to the internet

    Deny: DMZ1 (Network)  > ANY >  Internal (Network) 
    Allow: DMZ1 (Network)  > Any  > Any
  • I tried traceroute and ping from my computer that's on the internal network (which is working fine) before I tried it on the DMZ.  On this computer was not able to ping or traceroute anything on the internet, so I didn't even try it on the DMZ yet.  Is there a setting on Astaro that will block traceroute and ping?

    --Scott
  • My linksys is a WRT54GX.  I did not see anything that would let me set the Internet port IP statically. 

    --Scott
  • 'Network Security >> Packet Filter' on the 'ICMP' tab.

    I think Barry's right that you don't need a fixed IP on the Linksys.

    Make a network definition "Internet" 0.0.0.0/0 and bind it to the External interface. Then

    DMZ -> Any -> Internal (Network) : Drop
    DMZ -> Web Surfing -> Internet : Allow



    Please let us know if that resolves your issue.

    Cheers - Bob
  • My linksys is a WRT54GX.  I did not see anything that would let me set the Internet port IP statically. 

    --Scott


    BAlfson I never said you needed a fixed IP just that it is nicer/better practice.

    Looking at the manual, on the Setup tab the first option is Internet connection type. By default this is set to Automatic configuration (DHCP). Hit the drop down and change it to Static IP. Instructions are on page 10 and 11 of the manual I am looking at.[H]

    Edit: one thing I did not mention though but has caught me out is make sure you use a IP address that is NOT in the DHCP range. The Astaro does not use ping ahead to make sure that the DHCP address it hands out is not already in use on the network so can cause IP address conflicts if you use a address in the DHCP range.
  • I enabled Firewall forwards Traceroute, now I can traceroute past the firewall.

    I tried Barry suggestion on my DMZ network:
    traceroute to 74.125.92.174 was successful
    traceroute to Google failed.  Error: Unable to resolve target system name Google

    Per Barry, this would suggest a DNS problem, but I don't know what.  I'm using open DNS.  I did the same test above from in my working internal network and both test were successful.  What areas should I look at to see if it's a DNS issue.

    I took another look at my linksys and I did figure out how to set the internet port statically instead of DHCP, which I did.  I made the default gateway 192.168.117.1 - this is the address of the DMZ port on Astaro.  The DNS entries are Open DNS IPs: 208.67.222.222; 208.67.220.220.  

    I haven't tried Bob's suggestion to make a network definition "Internet" 0.0.0.0/0 and bind it to the External interface.  I'll do that next.

     
    --Scott

  • I took another look at my linksys and I did figure out how to set the internet port statically instead of DHCP, which I did.  I made the default gateway 192.168.117.1 - this is the address of the DMZ port on Astaro.  The DNS entries are Open DNS IPs: 208.67.222.222; 208.67.220.220.  
    --Scott


    Try setting the DNS address as the DMZ port on the Astaro. The Astaro should be acting as the DNS server for your internal devices.

    Also check what DNS settings the clients are using.

    Edit: Just confirming you do have the open DNS servers addresses on the internet interface?
  • BAlfson I never said you needed a fixed IP just that it is nicer/better practice.

    Looking at the manual, on the Setup tab the first option is Internet connection type. By default this is set to Automatic configuration (DHCP). Hit the drop down and change it to Static IP. Instructions are on page 10 and 11 of the manual I am looking at.[H]

    Edit: one thing I did not mention though but has caught me out is make sure you use a IP address that is NOT in the DHCP range. The Astaro does not use ping ahead to make sure that the DHCP address it hands out is not already in use on the network so can cause IP address conflicts if you use a address in the DHCP range.


    That's good to know about the DHCP range.  I just now deleted the whole DHCP server entry for my DMZ network in Astaro.  Same results with the traceroute -  works with IP, not with domain name.
  • Try setting the DNS address as the DMZ port on the Astaro. The Astaro should be acting as the DNS server for your internal devices.

    Also check what DNS settings the clients are using.

    Edit: Just confirming you do have the open DNS servers addresses on the internet interface?


    On my linksys I changed DNS to 192.168.117.1 which is the DMZ port on Astaro.  On the client computer connected to the linksys I did an ipconfig /release then /renew.  It showed DNS as 192.168.117.1.  So that seems to be working okay, but I still have the same problem - I can't get to the internet.

    In Network > DNS > Global Tab > Allowed Networks, I have 
    DMZ1 (Network)
    Internal (Network)

    In Network > DNS > Forwarders Tab > Allowed Networks, I have 
    -OpenDNS Primary
    -OpenDNS Secondary
    Use forwarders assigned by ISP is not checked

    In Definitions > Network I have:
    OpenDNS Primary / Host / 208.67.222.222 / Interface: ANY
    OpenDNS Secondary / Host / 208.67.222.220 / Interface: ANY


    --Scott
  • Did you catch my last post concerning DNS? looks like we were posting at the same time so you might have missed it.
  • If you're trying to use external DNS, then you need a rule to allow outgoing DNS packets from the LAN.
    The alternative, as mentioned by Nety, is to setup the DNS server on Astaro (Network - DNS) for that network, and put OpenDNS in the 'Forwarders' tab, and then put the Astaro DMZ NIC in the DHCP server settings for DNS.

    Barry
Reply
  • If you're trying to use external DNS, then you need a rule to allow outgoing DNS packets from the LAN.
    The alternative, as mentioned by Nety, is to setup the DNS server on Astaro (Network - DNS) for that network, and put OpenDNS in the 'Forwarders' tab, and then put the Astaro DMZ NIC in the DHCP server settings for DNS.

    Barry
Children
  • If you're trying to use external DNS, then you need a rule to allow outgoing DNS packets from the LAN.
    The alternative, as mentioned by Nety, is to setup the DNS server on Astaro (Network - DNS) for that network, and put OpenDNS in the 'Forwarders' tab, and then put the Astaro DMZ NIC in the DHCP server settings for DNS.

    Barry


    I've got OpenDNS in the forwarders tab, I've always had it setup like that (see post #21).  I'm confused about your last sentence. Can you be more specific?

    FYI: Previously I had two DHCP servers setup, one on Internal Interface (192.168.116.6) and one on the DMZ interface (192.168.117.1).  But when I figured out how to statically set the IP on my linksys, I deleted the DHCP server on the DMZ.  I just did this on post #20.
  • I've got OpenDNS in the forwarders tab, I've always had it setup like that (see post #21).  I'm confused about your last sentence. Can you be more specific?

    I think it was only if you were still using DHCP for the linksys.

    On a machine that is connected via  the wireless if you type into a command window nslookup what DNS server does it say it is using? Also if you then type in 72.14.205.103 (google server) what comes back?

  • On a machine that is connected via  the wireless if you type into a command window nslookup what DNS server does it say it is using? Also if you then type in 72.14.205.103 (google server) what comes back?



    I get:
    DNS Request Timed Out
    Can't find server name for address 192.168.117.1: Timed Out
    Default Server: Unknown
    Address: 192.168.117.1

    >72.14.205.103
    Server: Unknown
    Address: 192.168.117.1
    DNS Request timed out
  • Hi Scott,

    Is the linksys still running its dhcp server for 192.168.117.0? So, the wan port IP on the linksys is 192.168.117.2 and then devices behind that router are also in the 192.168.117.0 network?

    It may be a routing issue if its handing out IP's for 192.168.117.0 network the server probably thinks its local so it never sends it to the default gateway. I see you mention that you now assigning a static IP to the linksys on the astaro, so maybe you could just bypass connecting the linksys and astaro on the wan port and connect on the lan ports of the router. Then setup a static IP for your dmz server on the astaro.
  • Hi Scott,

    Is the linksys still running its dhcp server for 192.168.117.0? So, the wan port IP on the linksys is 192.168.117.2 and then devices behind that router are also in the 192.168.117.0 network?

    It may be a routing issue if its handing out IP's for 192.168.117.0 network the server probably thinks its local so it never sends it to the default gateway. I see you mention that you now assigning a static IP to the linksys on the astaro, so maybe you could just bypass connecting the linksys and astaro on the wan port and connect on the lan ports of the router. Then setup a static IP for your dmz server on the astaro.


    IP on the Astaro DMZ Interface: 192.168.117.1
    IP on the linksys internet port (statically assigned): 192.168.117.2
    LAN IP of the linksys (used to login to the linksys web admin): 192.168.117.7
    DHCP Range on the linksys: 192.168.117.10 - 192.168.117.40
    IP of laptop connected to linksys: 192.168.117.11


    -Scott
  • Ok, so I'm betting you can't contact 192.168.117.1 from any device in the 192.168.117.10 - 192.168.117.40 range, because of routing problem. As a workaround did you already try putting in the IP of Astaro's lan IP (192.168.116.1?) address for dns server for the dmz network or the opendns servers themselves to access them directly?

    *One other thing what is the default gateway that is assigned to 192.168.117.10 - 192.168.117.40, it should probably be the LAN IP of the linksys 192.168.117.7
  • Ok, so I'm betting you can't contact 192.168.117.1 from any device in the 192.168.117.10 - 192.168.117.40 range, because of routing problem. As a workaround did you already try putting in the IP of Astaro's lan IP (192.168.116.1?) address for dns server for the dmz network or the opendns servers themselves to access them directly?

    *One other thing what is the default gateway that is assigned to 192.168.117.10 - 192.168.117.40, it should probably be the LAN IP of the linksys 192.168.117.7


    dilandau,

    If by 'contact' you mean ping, you're right.  I from my laptop (192.168.117.11) it tried to ping the DMZ interface (192.168.117.1) and it failed.  From that laptop I was able to successfully ping the Internal Interface on Astaro (192.168.116.6).

    I didn't quite follow what you meant in your last sentence, but I did try this: On my laptop I went into TCP/IP properties dialog box and changed the DNS from 'Obtain DNS servers address automatically' to 'Use the following DNS...". I used the OpenDNS IP 208.67.222.222 and ...220.  This worked!  I was able to get onto the internet and I could traceroute google.com.  

    I feel that this is a work-around and doesn't fix the problem.  You seem to understand better then I do what's going on.  Does this info now explain to you what's happening?

    --Scott
  • OK, good to hear that works.

    You are not bridging so there is no benefit to having the computers behind the linksys in the same network range as the Astaro's dmz IP and the Linksys' external IP. You should probably create a seperate network just for the Astaro's dmz interface and the linksys external interface for example, 10.0.0.0 and keep the network 192.168.117.0 for the dmz behind the linksys.

    The reason it's not working right now is that the computers that are behind the linksys, 192.168.117.0 network think 192.168.117.1 is a local IP, they do not know to send any traffic for that IP to the default gateway or the linksys to route it properly. You could add a route on the laptop to get around this, but you would have to do this on each computer that connected to the wireless.
  • OK, good to hear that works.

    You are not bridging so there is no benefit to having the computers behind the linksys in the same network range as the Astaro's dmz IP and the Linksys' external IP. You should probably create a seperate network just for the Astaro's dmz interface and the linksys external interface for example, 10.0.0.0 and keep the network 192.168.117.0 for the dmz behind the linksys.

    The reason it's not working right now is that the computers that are behind the linksys, 192.168.117.0 network think 192.168.117.1 is a local IP, they do not know to send any traffic for that IP to the default gateway or the linksys to route it properly. You could add a route on the laptop to get around this, but you would have to do this on each computer that connected to the wireless.


    ohhhhhh.  How about if I leave Astaro alone and on the linksys change the network to from 192.168.117.*** to 192.168.118.***.  Will the computer still think 192.168.118.*** is local IP?  Or do I need a bigger IP change, like the 10.0.0.0 range.

    So why does it work now that I changed the DNS manually on my laptop.  Wouldn't this local issue still cause a problem?


    --Scott
  • ohhhhhh.  How about if I leave Astaro alone and on the linksys change the network to from 192.168.117.*** to 192.168.118.***.  Will the computer still think 192.168.118.*** is local IP?  Or do I need a bigger IP change, like the 10.0.0.0 range.

    So why does it work now that I changed the DNS manually on my laptop.  Wouldn't this local issue still cause a problem?


    --Scott


    That would work. So then:
     Astaro  Linksys external int 192.168.117.0 network
    Devices behind the linksys 192.168.118.0 network


    The problem is isolated to when you try to contact the Astaro's dmz interface specifically (or any computer that would be connected on that side of the linksys in the 192.168.117.0 network). 

    Changing the dns to the opendns servers the laptop knows the ip is not local so it sends it to the default gateway (I'm assuming its the linksys router) and then the linksys is directly connected to the Astaro so it sends it along to 192.168.117.1 and then out to the internet.