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

Unify WIfi and GuestWifi with two VLANs and management interface

Hi,

I managed to get two WLAN networks working on the Sophos XG using our existing Unify AP's.

Port4, zone wifi, static gateway address in the LAN range, LAN Relay

Port4.120 WifiGuest, DHCP server with IP address 192.168.120.x

Port4.121 Wifi, DHCP server IP address 192.168.121.x

 

Firewall rules allow the WifiGuest network access to a guest printer in the LAN, and the WAN. The Wifi has full access to the local LAN.

 

Sofar so good. However, For some reason there is no LAN connection on Port4. 

The AP's are connected to an EdgeSwitch, with a trunk on port 1 connecting the Unlabeled Management interface, and the two VLAN's. The switch port 1 is connected to the Port4 of the Sophos. 

I can get it to work by connecting a separate port of the EdgeSwitch to the LAN switch, but I would like to understand the configuration better, and I think it should be able to work with the Port4 interface.

Any suggestions?



This thread was automatically locked due to age.
Parents
  • Basic Question is, do you see on tcpdump on Shell any communication?

    So advanced Shell (SSH - 5 - 3) 

    tcpdump -ni Port4 

    There you should see some packets. You should see the VLAN untagged packets as well as the tagged packets (as kinda encrypted packets). 

  • Thanks for your help. 

    I see lots of traffic, but it is hard for me to distinguish the VLAN tagged and untagged traffic, as I am not a network expert. 

    What I do see is that the Wifi-WAN traffic is using the firewall rule for wifi, not the firewall rule for LAN, leaving the correct port Por4.121. So my conclusion is that the Wifi traffic is going over that port, but the management traffic is not.

     

     

  • Lets start with the basics.

    ifconfig shows you all interfaces (plus vlan interfaces).

    So you see Port4 as well as Port4.120 and Port4.121.

    So you can basically use tcpdump -ni Port4.120 to see all the tagged traffic going to your interface with VLAN tag on it. 

    Also possible is to sniff the traffic without those thing and instead using a little trick.

    https://serverfault.com/questions/196250/tcpdump-capture-one-of-several-vlans

    tcpdump -vv -i eth1 '( vlan and ( ether[14:2] & 0xfff == 1000 or ether[14:2] & 0xfff == 501 ) ) and ( ip host 10.1.1.98 or ip host 10.1.1.99 )'
    

     

     

    Most of the time, those issues are not XG related, instead the Switch has some issues in the config of VLANs. 

  • Thanks!

    Lots of traffic going over Port4. The VLAN's are not the problem, they work fine. The problem is the management of the AP's behind Port4. 

    I understand the problem may well be at the switch, but if I ask them, they will tell me to look at the firewall, so I thought I start here to find out if you see anything strange in my configuration. 

    I have configured the Port4 as  Zone Wifi, although it has a gateway address in the LAN range, as the AP's have an address in the LAN range. Maybe that is the problem?  How does trafic for 192.168.0.21 know it has to go to Port4 rather than Port1? I can change it to Zone LAN, but won't that have the same problem?

    There is a firewall rule allowing all traffic from and to Wifi - LAN.

Reply
  • Thanks!

    Lots of traffic going over Port4. The VLAN's are not the problem, they work fine. The problem is the management of the AP's behind Port4. 

    I understand the problem may well be at the switch, but if I ask them, they will tell me to look at the firewall, so I thought I start here to find out if you see anything strange in my configuration. 

    I have configured the Port4 as  Zone Wifi, although it has a gateway address in the LAN range, as the AP's have an address in the LAN range. Maybe that is the problem?  How does trafic for 192.168.0.21 know it has to go to Port4 rather than Port1? I can change it to Zone LAN, but won't that have the same problem?

    There is a firewall rule allowing all traffic from and to Wifi - LAN.

Children