1
General Discussion / Policy Based Routing: MultiWAN with one LAN and one PPP connection over LTE
« on: August 04, 2021, 12:28:18 pm »
Hi,
I have been using opnsense for policy based routing(PBR) with multi-WAN connections over ethernet interfaces. Using the following documentation:
https://docs.opnsense.org/manual/how-tos/multiwan.html
Now I want to add a PPP connection to the mix. I have been able to setup PPP successfully. Since there is no gateway in a PPP connection and the remote endpoint is the default route, I don't know how to setup the firewall rules for PBR.
My ppp configuration is:
How should I setup a policy to route traffic through my ppp interface in opnsense firewall?
I have been using opnsense for policy based routing(PBR) with multi-WAN connections over ethernet interfaces. Using the following documentation:
https://docs.opnsense.org/manual/how-tos/multiwan.html
Now I want to add a PPP connection to the mix. I have been able to setup PPP successfully. Since there is no gateway in a PPP connection and the remote endpoint is the default route, I don't know how to setup the firewall rules for PBR.
My ppp configuration is:
Code: [Select]
ppp0:
set device /dev/cuaU0.2
set speed 115200
set timeout 0
set redial 10 0
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
set dial "ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 \
\"\" \
AT OK-AT-OK \
AT+CPIN="" OK-AT-OK \
ATH OK-AT-OK \
ATE1 OK-AT-OK \
AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \
\\dATD*99# TIMEOUT 40 CONNECT"
My ifconfig output is:Code: [Select]
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
inet 10.94.37.216 --> 10.0.0.2 netmask 0xffffff00
groups: tun
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
Opened by PID 19769
How should I setup a policy to route traffic through my ppp interface in opnsense firewall?