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 - sbtech

#1
22.1 Legacy Series / Custom Cron Job
June 02, 2022, 09:19:47 PM
I have been trying to setup a custom cron job. Googled and found several forum posts about action.d. So I created a file and restarted the service but nothing showing up in cron.

action.d file and service restart


root@dmz01:/usr/local/opnsense/service/conf/actions.d # more actions_sbt.conf
[uploadacmecertificates]
command:/usr/local/bin/removed
parameters:-s removed
type:script
message:Upload Acme Certificates
root@dmz01:/usr/local/opnsense/service/conf/actions.d # service configd restart
Stopping configd...done
Starting configd.
root@dmz01:/usr/local/opnsense/service/conf/actions.d #


When I goto System->Settings->Cron and try and add a new job I can't find it in the list?
#2
Most of my experience is with PFsense so I have not tired on OPNsense yet.

I have setup a new router to replace an older router by just setting up the interface names correctly and then downloading the xml config for reference.

Download xml config from router with config you want to replace the <if> fields with the correct ones. If your using VLANs triple check!

Upload modified config to new router and it should work.
#3
I tried a traceroute from the windows computer and it did something strange....

sent the traceroute upstream to comcast. see picture
#4
5 Interface setup with 2 WAN.

I can ping 3 of the 5 opnsense interface IP's. (from workstation)
I can ping both WAN gateways. (from workstation)

Windows 10 workstation is getting 10.2.2.102 IP from opnsense DHCP and I can access the webinterface on the router at 10.2.2.1. But I can't ping IP.

I have a allow everything rule on all interfaces.


Firewall ->Log Files ->Live View does not show any of my ping's?



#5
I started reviewing the config XML and I had tried something that I did not remove after changing subnets for an interface.

I setup one of the LAN interfaces as 10.2.3.0/24 for a minute. After removing this I rebooted the router an the state table is back (and other diagnostic tools). This was also generating an error notification.


    <onetoone>
      <external>PUBLICIPREMOVED/32</external>
      <descr>master.sbtphone.net</descr>
      <interface>wan</interface>
      <type>nat</type>
      <source>
        <network>lan</network>
      </source>
      <destination>
        <address>10.2.3.10</address>
      </destination>
    </onetoone>
#6
I setup a fresh install on an APU and configured 5 networks, 2 WAN and 3 LAN.

Primary WAN is Fiber and WAN2 is Comcast in DHCP.
2 LANs are public IP blocks assigned to me and the 3rd LAN is a private IP space 10.2.2.0/24.

I have several servers and my WISP router (PFSense) configured and passing traffic thru the opnsense APU over the fiber. private 10.2.2.0/24 is setup to send traffic over the Comcast internet and failover to the fiber. nothing connected to the 10.2.2.0/24 network will pass traffic to the internet, can't ping 8.8.8.8 but can ping public and private router interfaces.

When I goto look at the state table I see nothing (see picture) I feel like some of the other diagnostic tools are missing info too and I also noticed the the outbound NAT was in hybrid mode and the automatic rules are gone.

I have been using PFSense for years and I'm pretty sure I setup thing right but am missing something or my config has broken opnsense.

#7
18.1 Legacy Series / APU Install - 18.1
March 06, 2018, 12:38:02 AM
I have been using APU's with PFSense and I have an extra that I was going to try opnsense with for the first time.

I downloaded the 18.1 nano image and write it to an SD card. First boot works, change a few settings and reboot and it won't boot. I have tried all the solutions I could find in the forums. Is there something I need to change during the first boot to keep it booting after initial boot.

The forum threads I read from late 2017 seamed to imply a fix was integrated into version 18.