1
vote
Accepted
How to update, instead of flush and re-write, iptables rules
If there are specific rules that need to be updated regularly, I would put them in a separate chain, calling that chain from INPUT in an appropriate slot
iptables -N mychain # Create ...
1
vote
How to update, instead of flush and re-write, iptables rules
Replacing Rules is possible.
Here is an example:
First you can create a rule at the top (first) position with this command :
iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT
Rules can be specified to ...
1
vote
Accepted
UFW Masquerade and outside traffic only on specific interfaces
Between your question description and the UFW rules you've set up, it looks to me like you want to allow your WireGuard server to do these 4 things?:
Forward connections between any two hosts on its ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
iptables × 2436linux × 540
networking × 462
firewall × 400
routing × 252
centos × 175
nat × 169
debian × 141
ubuntu × 122
openvpn × 119
port-forwarding × 117
vpn × 83
netfilter × 83
ssh × 82
security × 82
firewalld × 62
ip × 61
iptables-redirect × 59
docker × 54
proxy × 53
forwarding × 50
ufw × 49
rhel × 47
tcp × 47
route × 42