# cat > /etc/systemd/system/iptables.service << EOF
[Unit]
Before=network.target
[Service]
Type=oneshot
ExecStart=/sbin/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j REJECT
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
EOF

# systemctl enable --now iptables.service

# systemctl start iptables.service

全站熱搜

dreamtails 發表在 痞客邦 留言(0) 人氣()