Skip to content

Commit 44c5464

Browse files
Port Forwarding
1 parent fd7d534 commit 44c5464

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

0x13-firewall/100-port_forwarding

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
##port forwarding
2+
# foward port 8080 to 80
3+
*nat
4+
:PREROUTING ACCEPT [0:0]
5+
-A PREROUTING -p tcp --dport 8080 -j REDIRECT --to-port 80
6+
COMMIT
17
#
28
# rules.before
39
#
@@ -8,11 +14,6 @@
814
# ufw-before-forward
915
#
1016

11-
*nat
12-
:PREROUTING ACCEPT [0:0]
13-
-A PREROUTING -p tcp --dport 8080 -j REDIRECT --to-port 80
14-
COMMIT
15-
1617
# Don't delete these required lines, otherwise there will be errors
1718
*filter
1819
:ufw-before-input - [0:0]

0 commit comments

Comments
 (0)