Anyone willing to help a n00b?
My hEX is behind my DSL modem/router. Maybe I should just set the modem/router into bridge mode and make the Mikrotik device handle the routing, but I’m in way above my head. My networking knowledge is rudimentary, and right now I want to just get a VPN server running without clobbering and exposing my entire network.
After a bunch of repetitive work, I have managed to get OpenVPN running and can successfully connect to it externally. However, I can’t access the internet. I suspect the problem is in DHCP or routing. Maybe some subnet problem. When I connect to the VPN, my router assigns my laptop the same IP address I have when I’m normally connected locally on wifi. Local IPs work, but not the internet.
Is this an exercise in futility?
/interface bridge
add admin-mac=6C:3B:6B:6C:3B:6B auto-mac=no comment=defconf name=bridgeLocal
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=ovpn-pool ranges=192.168.252.240-192.168.252.245
/ppp profile
add dns-server=84.200.70.40,84.200.69.80 local-address=ovpn-pool name=ovpn-profile remote-addre
use-compression=no use-encryption=required
/interface bridge port
add bridge=bridgeLocal comment=defconf interface=ether1
add bridge=bridgeLocal comment=defconf interface=ether2
add bridge=bridgeLocal comment=defconf interface=ether3
add bridge=bridgeLocal comment=defconf interface=ether4
add bridge=bridgeLocal comment=defconf interface=ether5
/interface list member
add interface=ether1 list=WAN
add interface=ether2 list=LAN
add interface=ether3 list=LAN
add interface=ether4 list=LAN
add interface=ether5 list=LAN
/interface ovpn-server server
set auth=sha1 certificate=server-certificate cipher=aes256 default-profile=ovpn-profile enabled
require-client-certificate=yes
/ip address
add address=192.168.1.252/24 disabled=yes interface=ether2 network=192.168.1.0
/ip dhcp-client
add comment=defconf disabled=no interface=bridgeLocal
/ip firewall filter
add action=accept chain=input comment="accept related, established" connection-state=establishe
connection-type=""
add action=accept chain=input comment="Accept OVPN" dst-port=1194 protocol=tcp
/ip firewall nat
add action=masquerade chain=srcnat comment="OVPN -> LAN" src-address=192.168.1.0/24
/ppp secret
add name=blackvelvet profile=ovpn-profile service=ovpn
/system clock
set time-zone-name=America/Toronto
/system ntp client
set enabled=yes server-dns-names=\
0.ca.pool.ntp.org,1.ca.pool.ntp.org,2.ca.pool.ntp.org,3.ca.pool.ntp.org,pool.ntp.org