What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

VLAN on LAN port to Gateway for guest WiFi

Phlogi

New Around Here
I'm trying to achieve the following setup:
SIu7C72.png


Most guides I found here are changing the vlan settings inside the wifi router in order to isolate the guest wifi to a single port. However in my case I'd like to have both my internal wifi as well as the guest wifi on the same or even all ports however tag them to the outside in order to connect to my pfsense box. There I'll add the tagged port (eth0 phys in the image) as a new interface and run a separate guest DHCP and only add rules to connect to the internet.

For this I'd need to configure the Port 1 as a trunk port on my AC68U right? How would I do that?

The code I have so far on the asus router running Merlin:
Code:
robocfg vlan 10 ports "1 8t"

vconfig add eth0 10

# create a bridge to isolate guest wifi - this is actually not required is it?
brctl delif br0 wl0.1
brctl addbr br10
brctl addif br10 vlan10
brctl addif br10 wl0.1
ifconfig vlan10 up

ifconfig br10 192.168.50.5
ifconfig br10 192.168.50.5 netmask 255.255.255.0 up
iptables -I INPUT 1 -i vlan10 -j ACCEPT
ebtables -F
ifconfig
#remove wl0.1 from lan ifnames
nvram set lan_ifnames="vlan1 eth1 eth2"
nvram set lan1_ifnames="vlan10 wl0.1"
nvram set lan1_ifname="br10"
killall eapd
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top