Cron script [NOT SOLVED]

Started by FredFresh, March 31, 2026, 06:08:53 PM

Previous topic - Next topic
March 31, 2026, 06:08:53 PM Last Edit: April 11, 2026, 06:21:23 PM by FredFresh
Hi,

I created this working script for the Cron

[START]
command:traceroute -g 127.0.0.1 10.2.0.1
parameters:
type:script
message:Automatic traceroute to 10.2.0.1
description:Automatic traceroute to 10.2.0.1

How should I modify it in order to pass as parameterthe ip to trace route (10.2.0.1)?

Thank you

You are aware of https://docs.opnsense.org/manual/diagnostics_interfaces.html#trace-route or not ?

You can create a "Traceroute Job" there too.
Weird guy who likes everything Linux and *BSD on PC/Laptop/Tablet/Mobile and funny little ARM based boards :)

Yes I am aware, but I need to schedule it because of a particular issue.


[START]
command:traceroute -g 127.0.0.1
parameters:%s
type:script
message:Automatic traceroute to %s
description:Automatic traceroute


From GUI set custom parameter field to 10.2.0.1

Description must be static.

April 11, 2026, 03:39:48 PM #5 Last Edit: April 11, 2026, 06:16:52 PM by FredFresh Reason: update after test
unfortunately it seems it does not work properly. The log returns:
 <4>[1447] attempted source route from 10.3.0.2 to 127.0.0.1

the command is executed but the IPs are reversed.

@franco: suggestions? thanks

April 11, 2026, 10:52:36 PM #6 Last Edit: April 11, 2026, 11:18:08 PM by FredFresh
Reply wrongly created