forked from vincent/notebook
add IPTables
This commit is contained in:
parent
b052a017d8
commit
94ac02ad8d
8
IT/linux/IPTables.md
Normal file
8
IT/linux/IPTables.md
Normal file
@ -0,0 +1,8 @@
|
||||
# IPtables
|
||||
|
||||
## Forward un port sur un autre
|
||||
|
||||
iptables -t nat -A PREROUTING -p udp -m udp --dport 53 -j REDIRECT --to-ports 8600
|
||||
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 8600
|
||||
iptables -t nat -A OUTPUT -d localhost -p udp -m udp --dport 53 -j REDIRECT --to-ports 8600
|
||||
iptables -t nat -A OUTPUT -d localhost -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 8600
|
Loading…
Reference in New Issue
Block a user