hello ubuqiti user
I wounder if anybody out there have some solution for me about config a open vpn Klient that is only assign to one of the fysical port. e.g eth3. The rest of the Lan port(eth 1,eth2,eth4) is not config for open vpn, it is linked as ordinary connection to Ips.
I have purpose to emanate from this code:
set interfaces openvpn vtun0 config-file /config/auth/midwest.ovpn
set interfaces openvpn vtun0 description 'Private Internet Access'
set interfaces openvpn vtun0 enable
set service nat rule 5000 description PIA
set service nat rule 5000 log disable
set service nat rule 5000 outbound-interface vtun0
set service nat rule 5000 source address 192.168.66.0/24
set service nat rule 5000 type masquerade
set service nat rule 5001 description default
set service nat rule 5001 log disable
set service nat rule 5001 outbound-interface eth0
set service nat rule 5001 source address 192.168.66.0/24
set service nat rule 5001 type masquerade
set protocols static table 1 interface-route 0.0.0.0/0 next-hop-interface vtun0
set firewall modify pia_route rule 10 description 'PIA'
set firewall modify pia_route rule 10 source address 192.168.66.0/24
set firewall modify pia_route rule 10 modify table 1
set interfaces switch switch0 firewall in modify pia_route
thios code i taken from Willie Howe youtube channel
from this i have some question?
Nr 1: The ip number 192.168.66/0 is where the switch0 it linked to?
Nr2: can i change switch0 to eth3? to get as i won't. And than i make a new subnet pool for eth 3. eg. 192.168.65/24