I would like to circumvent my VPN for specific websites like Netflix. By default, all my traffic goes through the VPN tunnel. How do I do that? Thanks.
:global ListFind do={
:local myListName $list
:local myServer $server
:local myTimeout "12:00:00"
:put "Searching for $myServer and adding to $myListName"
:local myName
/ip dns cache all {
:foreach j in=[print as-value where (name~$myServer and type="CNAME")] do={
:do {
:set $myName ($j->"data")
:put "Resolving... $myName"
:set $resolve [:resolve $myName]
:do {
/ip firewall address-list add address=($resolve) list=$myListName comment=($myName) timeout=$myTimeout
} on-error={
/ip firewall address-list set [find where address=($resolve)] timeout=$myTimeout
}
}
}
}
/ip dns cache all {
:foreach j in=[print as-value where (name~$myServer and type="A")] do={
:do {
/ip firewall address-list add address=($j->"data") list=$myListName comment=($j->"name") timeout=$myTimeout
} on-error={
/ip firewall address-list set [find where address=($j->"data")] timeout=$myTimeout
}
}
}
}
$ListFind server="youporn" list="porn"
$ListFind server="phncdn" list="porn"
$ListFind server="youtube" list="youtube"
$ListFind server="googlevideo" list="youtube"
$ListFind server="facebook" list="facebook"
$ListFind server="fbcdn" list="facebook"
$ListFind server="sphotos" list="facebook"
Adapt.
You can add a static route for Netflixs IPs directly through your gateway instead of VPN.
Thanks. The next step is to create a mangle rule?
DNS would be better. Don’t want to add all kind of IPs.
You can crewte a script of some sorts, but mikrotik routes and rules in general aren’t DNS aware, you need IPs.
Update netflix ip’s for static routes based on dns?
After that anything else? Sorry, I’m kind of a newbie to Mikrotik.
You can ways make them aware with some scripting if you really wanted to
Not gonna hand-hold you, don’t have time. Sorry.