Skip to content

Commit

Permalink
put a marker into the iptables rule comment for a simple up+running c…
Browse files Browse the repository at this point in the history
…heck
  • Loading branch information
toralf committed Aug 2, 2024
1 parent caf226b commit 52c2a73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ipv4-rules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function relay_2_ip_and_port() {

function addCommon() {
# allow loopback
$ipt -A INPUT --in-interface lo -m comment --comment "$(date -R)" -j ACCEPT
$ipt -A INPUT --in-interface lo -m comment --comment "DDoS IPv4 $(date -R)" -j ACCEPT

# make sure NEW incoming tcp connections are SYN packets
$ipt -A INPUT -p tcp ! --syn -m state --state NEW -j $jump
Expand Down
2 changes: 1 addition & 1 deletion ipv6-rules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function relay_2_ip_and_port() {

function addCommon() {
# allow loopback
$ipt -A INPUT --in-interface lo -m comment --comment "$(date -R)" -j ACCEPT
$ipt -A INPUT --in-interface lo -m comment --comment "DDoS IPv6 $(date -R)" -j ACCEPT

# IPv6 Multicast
$ipt -A INPUT -p udp --source fe80::/10 --dst ff02::/80 -j ACCEPT
Expand Down

0 comments on commit 52c2a73

Please sign in to comment.