Community discussions

 
ArminE
just joined
Topic Author
Posts: 2
Joined: Thu Feb 10, 2011 10:44 am

Enable Firewall Rule receiving UDP-Packet with content "ONF"

Thu Aug 29, 2019 10:37 am

Hi,
it is possible to enable a specific Firewall rule receiving a UDP-Packet on the Port 9999 with the content "ON"?
 
Sob
Forum Guru
Forum Guru
Posts: 4549
Joined: Mon Apr 20, 2009 9:11 pm

Re: Enable Firewall Rule receiving UDP-Packet with content "ONF"

Thu Aug 29, 2019 6:20 pm

Something is possible. If you want "ON" (case-sensitive) anywhere in packet, you can use this:
/ip firewall filter
add action=accept chain=forward content=ON dst-port=9999 protocol=udp
For whole packet containing only "ON" and nothing else (but case-insentitive, so even "on", "On" or "oN" will match), use this:
/ip firewall layer7-protocol
add name=ON regexp="^ON\$"
/ip firewall filter
add action=accept chain=forward dst-port=53 layer7-protocol=ON protocol=udp
People who quote full posts should be spanked with ethernet cable. Some exceptions for multi-topic threads may apply.

Who is online

Users browsing this forum: No registered users and 19 guests