Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - hasanijaz

#1
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:
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:

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?
#2
20.1 Legacy Series / Restart dhcp service from cli
June 04, 2020, 03:21:06 PM
Hi, I have enabled and created the dhcp service from WebGUI. But I cannot find a way to restart dhcp service from the cli. I can't find any API for doing that too.

Please help!
#3
20.1 Legacy Series / Re: Manually Install Updates
April 20, 2020, 05:10:11 PM
Cool. Thanks Franco.

I can then follow this to setup a local server:
https://forum.opnsense.org/index.php?topic=12732.0

Right??
#4
20.1 Legacy Series / Manually Install Updates
April 19, 2020, 09:48:49 PM
Hi,

I have gone through the wiki and the forum but I could not find an answer. So I am posting here.

I would like to manually download and install an update for opnsense using the cli. Basically I do not want to use the opnsense mirrors to download the new updates. I would rather host them myself and make the router fetch them from my server and install them.

Is this doable with opnsense tools?? Can anyone guide me please!

Thanks