Skip to content

DNS script check #613

Answered by m4n63
zbugrkx asked this question in Q&A
Jun 5, 2024 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

Use the --check option to first check if it exists, like in this example:

iptables --check FORWARD -s 192.168.30.218 -d 192.168.10.203 -p tcp --dport 1883 -j ACCEPT || iptables -I FORWARD -s 192.168.30.218 -d 192.168.10.203 -p tcp --dport 1883 -j ACCEPT

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@zbugrkx
Comment options

@zbugrkx
Comment options

@zbugrkx
Comment options

@m4n63
Comment options

@zbugrkx
Comment options

Answer selected by zbugrkx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants