I need advise from the community for best approach. My setup is that my ISP's modem is bridged to my FreeBSD 11.1 and I have 3 NIC ports on it.
so far, the problem too, is that if I ping -S (ip from the other nic) from inside FreeBSD server
it wont go anywhere. and I suspect that's because the default GW is through em1
What I wanted to achieve is to separate the guest SSID to its own. To use 192.168.2.0/24 and gateway to the re0 interface. All on the same physical resource and FreeBSD server.
Overall - I actually do not know where to start. anyone that can bootstrap me is greatly appreciated. thank you.
relevant configs include
/etc/rc.conf
- em0 is LAN
- em1 is the primary gateway (bridged with modem)
- re0 is also bridged (another port of the modem)
- pf as firewall and NAT
- kea as DHCP server
- Cisco managed SG-2000-26 switch (with support VLAN tagging)
- Ubiquiti Unifi access point that supports guest network, VLAN, captive portal.. and Unifi5 controller on the same FreeBSD
so far, the problem too, is that if I ping -S (ip from the other nic) from inside FreeBSD server
Code:
ping -S 50.65.214.35 8.8.8.8
What I wanted to achieve is to separate the guest SSID to its own. To use 192.168.2.0/24 and gateway to the re0 interface. All on the same physical resource and FreeBSD server.
Overall - I actually do not know where to start. anyone that can bootstrap me is greatly appreciated. thank you.
relevant configs include
/etc/rc.conf
Code:
gateway_enable="YES"
pf_enable="YES"
pf_rules="/etc/pf.conf"
pf_program="/sbin/pfctl"
# LAN gateway
ifconfig_em0_alias0="inet 192.168.0.10 netmask 255.255.255.0
# NAT interface
ifconfig_em1="UP"
ifconfig_em1="DHCP"
ifconfig_re0="UP"
ifconfig_re0="DHCP"
kea_enable="YES"
named_enable="YES"
named_program="/usr/local/sbin/named"
named_confdir="/etc/namedb/"
named_uid="bind"
unifi_enable="YES"
netstat
Code:
Destination Gateway Flags Netif Expire
default 50.65.196.1 UGS em1
50.65.196.0/22 link#2 U em1
50.65.198.252 link#2 UHS lo0
50.65.212.0/22 link#3 U re0
50.65.214.35 link#3 UHS lo0
127.0.0.1 link#4 UH lo0
192.168.0.0/24 link#1 U em0
192.168.0.10 link#1 UHS lo0