Tom Eastep skrev den 2026-09-15 18:20:
Hello all,
I have try shorewall-nft on my configuration, all work fine but I had
to remove into params all comments put on the same line to the right of
the variables
es:
LOC_LAN_PORT_TCP_OPEN="$LOC_LAN_PORT_TCP_OPEN,8000,21115:21119" #
RustDesk Network tcp and udp (rustdesk)
LOC_LAN_PORT_UDP_OPEN="$LOC_LAN_PORT_UDP_OPEN,21116" # RustDesk Network
tcp and udp (rustdesk)
When I use this variable in rules I get this error:
shorewall check /etc/shorewall
ERROR: /etc/shorewall/rules:62: invalid rules mark 'and'
I must change my params file and remove this comments or into some next
version this "feature" could be restored?
Many thanks for reply
#
# Shorewall -- /etc/shorewall/macro.RUSTDESK
/etc/shorewall6/macro.RUSTDESK
###############################################################################
#ACTION SOURCE DEST PROTO DPORT SPORT ORIGDEST RATE USER
PARAM - - tcp 8000,21115,21119
PARAM - - udp 21116
#
# Shorewall -- /etc/shorewall/rules /etc/shorewall6/rules
#
# For information on the settings in this file, type "man
shorewall-rules"
#
# The manpage is also online at
# http://www.shorewall.net/manpages/shorewall-rules.html
#
##############################################################################################################################################################
#ACTION SOURCE DEST PROTO DPORT SPORT
ORIGDEST RATE USER MARK CONNLIMIT TIME HEADERS SWITCH
HELPER
?SECTION ALL
?SECTION ESTABLISHED
?SECTION RELATED
?SECTION INVALID
?SECTION UNTRACKED
?SECTION NEW
?COMMENT RUSTDESK/ACCEPT
RUSTDESK/ACCEPT net $FW
should work
using PARAM file will not work
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users