Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 549ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
f

firewall-security

Recently created Least recently created Recently updated Least recently updated

timmy / iptables 高效設定技巧

Last active 6 hours ago ddos-protection firewall-security iptables network-configuration traffic-management

快速配置 iptables,確保流量安全,簡單搞定網絡管理。

0 0 0 7
1 # 僅允許必要的 OUTPUT 流量
2 iptables -A OUTPUT -o eth0 -p tcp --dport 80 -j ACCEPT
3 iptables -A OUTPUT -o eth0 -p tcp --dport 443 -j ACCEPT
4 iptables -A OUTPUT -o eth0 -p udp --dport 53 -j ACCEPT