Archive

Archive for the ‘Internet’ Category

WiFi SSIDs on different VLANs

January 27th, 2019 No comments

It’s been 10 years or so since I’ve posted anything meaningful to the si-ka.net network so I decided to it might be nice to start cross posting some of my technical or interesting topics from my personal blog here. Original.


I thought I’d do a quick write-up covering WiFi SSIDs on multiple VLANs, something that might be useful in a home setup, separating SSIDs better from one another. While I usually prefer the CLI, a lot of the devices mentioned here only (or mainly) use a web GUI for configuration management, so this posting will include a lot more screenshots than my usual postings. This posting won’t contain anything exciting for people who run and support networks professionally (mostly just a “so what options are available on SOHO hardware?”), and may even be overly simple and assume settings you wouldn’t do in a professional setup. But it is useful for homelab enthusiasts looking to build a more complex setup than “everything on the same VLAN/network” or trying to figure out “how do I use VLANs, give me an example”.

Ubiquiti and Netgear have some reasonable priced network gear that I’ve written about in the past that behave decent in home networks. For out little setup today we will have a WiFi access point with multiple SSIDs, two switches, and a firewall/router. We will be focusing on the configuration of the WiFi Access Point (UniFi AP) , the two Netgear switches (GS105Ev2 / GS108Ev3) and the Ubiquiti Router (Edgerouter X).

Our goal is to have two SSIDs on the access point, one for the “normal” devices (VLAN 1), and one for separate devices (VLAN 178). Since the router to VLAN 178 is on a different switch than the access point we also need to trunk both VLANs across the network. Another way of looking at it, is that we are expanding Subnet/VLAN 178 into our network (but limiting it to the WiFi Access points). 178 doesn’t hold any special meaning, you can use any VLAN number you want, just chose 178 because the subnet in this test setup was 10.0.178.0/24.

Here is a diagram of our test setup:

VLAN 1: The management and main client VLAN
VLAN 178: Subnet 178, 2nd WiFi network

Netgear 1

Port 1: Connection to Netgear 2
Port 5: Access Point

Netgear 2

Port 1: Connection to Netgear 1
Port 8: Edgerouter

Edgerouter

eth0: Connection to Subnet 178
eth1: Connection to Netgear 2

 

Wireless Configuration

In the UniFi controller go to Settings->Wireless Networks either create a new network or edit an existing one. If you go into the advanced options area, you will find the VLAN setting for that SSID. Activating the option and setting a value means the access point will tag all packets from that SSID to the specified VLAN number.

In the network overview below we see that packets from one network are tagged with VLAN 178, and packets from the other network are untagged (the switch configuration will take care of deciding which VLAN untagged packets are part of).

Netgear Configuration

The Netgear devices only have a VLAN 1 defined by default, so the first step will be to add VLAN 178 to both of them. Enable Advanced 802.1q (VLAN->802.1Q->Advanced->VLAN Configuration), enter the VLAN ID 178 in the box and click on “Add” at the top.

Now let’s move on to the VLAN Membership configuration. To switch settings, just click on the port and it will switch from tagged->untagged->none.

Netgear 1 device

For VLAN 1 we want port 1 to be (T)agged since it is the trunk to the next switch, and all other ports (U)ntagged since they will be dealing with untagged VLAN 1 traffic. The PVID will also be set to 1 for all ports.

For VLAN 178 we want port 1 to be (T)agged since it is the trunk to the next switch, port 5 (T)agged since it is the connection to the access point, and all other ports “none” since none of those ports are part of VLAN 178.

 

 

VLAN overview after changing all the settings:

 

For this scenario it is sane to leave the Port PVID configuration to PVID 1 on all ports. You could change a port to 178 if you are expecting untagged traffic on that port that needs to be in VLAN 178.

Netgear 2 device

Similar configuration as the first switch so I’ll skip the screenshots. Port 1 is the connection to the Netgear 1 device, port 8 is connected to the Edgerouter.

    • all ports PVID 1
    • VLAN 1 Tagged port 1 and 8, all other ports untagged
    • VLAN 178 Tagged port 1 and 8, all other ports none

Edgerouter Configuration:

Make sure the interface switch0 spans all ports you want to use VLANs on. Add the two VLANs 1 and 178. They should show up in the list as switch0.1 and switch0.178, and you can apply firewall rules to these interfaces to restrict traffic if you are doing any routing between the two networks.
We will want to tag everything from Subnet 178 as VLAN 178 on the interface connected to that network (eth0 in our setup), and allow VLAN 178 on the outgoing interface (eth1 in our setup). The Edgerouter doesn’t need us to specifically allow VLANs already set by the PVID, only additional VLANs need to be specified in the vid field.

Where to go from here?

You could put servers or virtual machines in their own subnet/VLAN and then use a firewall to restrict access between the different networks.

Adding more Access Points is straightforward, UniFi automatically applies the wireless configuration to all Access Points it manages, so all you need to do is take care of the switch port configuration.

Privacy Policy

May 22nd, 2018 No comments

Soon new laws will go into effect in the EU regarding data privacy. I assume anyone reading this has already noticed everyone updating their privacy policies. The German version of the laws exempt private websites, but the exact definition of what “private” means is a bit unclear.

To err on the side of caution we also updated our privacy policy, our impressum, and took the necessary steps behind the scenes to be complaint with the laws. The following links/forms are also in the policy itself, but for easier access:

 

Submit a request to rectify data:

 

Categories: Internet Tags:

Vodafone DSL and settings for LinkSys X3500 router

August 19th, 2017 No comments

Since I had to fiddle with the settings at the router here is what finally worked for me:

RFC 2516 PPPoE

Multiplexing: LLC
QoS Type: UBR
PCR: default (4000)
SCR: default (4000)
VPI: 1
VCI: 32
DSL Modulation: ADSL2+

Username: 1und1/xxxx-yyy@online.de
Password: [your password]

Note: This works for ADSL based connections. VDSL is a different topic.

Categories: -si.ka-, Internet Tags: , ,

fake publishing

January 12th, 2012 No comments

Da glaubt man wirklich man hätte schon vieles im Netz gesehen und wird aber immer noch überrascht (bin wohl doch zu naiv). Die Geschichte in Kürze : Mein Kollege im Nachbarbüro befasst sich derzeit mit nginx als Webserver für manche unserer Anwendungen. Kurzerhand hat er sich vor ein paar Tagen ein Buch zum Thema ‘nginx‘ vom “betascript publishing verlag” über Amazon gekauft (möchte das Ranking der Amazon-Seite nicht noch steigern indem ich hier einen Link darauf setze).

Was da als gedrucktes Buch im Format 226mm x 152mm geliefert wurde ist mehr als nur eine Frechheit. Das gesamte Buch besteht aus Inhalten von Wikipedia-Artikeln zu den verschiedensten Themen. nginx ist nicht mal Ansatzweise Fokus in diesem Buch. Der Umfang des Buches reicht von Artikeln der Geschichte von Microsoft Windows und MacOS bis hin zu Artikeln über die Frage ob die Dateiendung M4A der Dateiendung MP4 vorzuzuiehen sei. Zwischendrin geht es munter weiter mit seitenlangen (!) Referenzen zu Wikipedia-Artikeln. Die Sinnhaftigkeit solcher URL-Wüsten in einem Buch kann wohl jeder selber abschätzen. Als wir der Sache etwas auf den Grund gegangen sind haben wir festgestellt das dies ein (in vielerlei Hinsicht) großes Thema ist.

Offenbar existieren hier “Verlage” welche diesen Vorgang (zusammenkopieren von Wikipedia-Artikeln bis hin zur Veröffentlichung) zumindest teilweise automatisiert haben und über große Buch-Plattformen wie Amazon (aber auch andere wie Barnes&Noble) solchen Müll im großen Stil anbieten. Eine Suche bei Amazon über alle Veröffentlichungen dieses Verlages, heute im Januar 2012, ergab genau 155.428 englischsprachige Bücher. Auch ist der Output einzelner Autoren gigantisch, wie z.B. “Lambert M. Surhone”, welcher allein bei 17.638 Büchern als Autor vermerkt ist. book-spam at its best!

Categories: Internet Tags:

von CentOS 5 auf Ubuntu 8.04 LTS gewechselt

April 2nd, 2010 No comments

Diverse Dinge an der 1und1 Default-Installation von CentOS 5 gingen mir zunehmends auf den Nerv. Die, in Teilen immer noch aktive Plesk-Installation, das RPM Format, und die kleineren Unterschiede ggü. der Debian-Welt der Linux Distri’s.
Da die eigentlich payload auf diesem Server auf virtuellen Maschienen (betrieben unter VirtualBox 3.x) liegt war diesmal der Entschluss auf eine andere Distribution auf dem Host zu wechseln schnell gefasst. Der Ablauf im folgenden :

16:00 Uhr
– Herunterfahren der VMs (nach Ankündigung in den entsprechenden Foren etc.)
– Packen der VM Disks (bzip2 tarballs)
– Transfer der Tarballs auf den FTP-Backup (arrrg! unter CentOS gibts kein ncftp RPM….)
~ 17:30 Uhr
– über 1und1 Web-Interface die Neuinstallation des Root-Servers mit Ubuntu 8.04 LTS veranlasst
~ 18:30 Uhr
– kleinere Änderungen an der neuen Installation vornehmen
– Tarballs vom FTP-Backup zurückholen und auspacken (dauert…..)
– VirtualBox 3.1 von SUN’s repository installieren (nice….)
~ 20:00 Uhr
– anpassen der XML Dateien welche die VMs beschreiben (Pfade anpassen)
– sich über das fragwürdige Partitionierungsschema von 1und1’s Installation aufregen (bin ja selber schuld : weil zu faul)
~ 20:30 Uhr
– produktive VMs starten

Alles in allem ein recht schneller Wechsel, nicht zuletzt darin begründet das auf dem Host kaum Veränderungen vorgenommen wurden.

Tip für solch einen Umzug :
Unbedingt das homepath/.VirtualBox Verzeichnis des Users unter dem die VMs eingerichtet wurden komplett sichern. Hier liegt die Konfiguration von VirtualBox homepath/.VirtualBox/VirtualBox.xml sowie die Konfig-Dateien der VMs homepath/.VirtualBox/Machines/. Hier die Pfade zu den Disk-Images anpassen und schon kann es losgehen. Die NAT-Konfiguration wird ebenfalls in den VM spezifischen XML Dateien eingetragen.

Categories: Internet Tags: