ubuntu:networking:configuration:ip_forwarding
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:networking:configuration:ip_forwarding [2021/07/26 11:04] – peter | ubuntu:networking:configuration:ip_forwarding [2021/07/26 11:19] (current) – [Check if Port Forwarding is Enabled] peter | ||
---|---|---|---|
Line 5: | Line 5: | ||
---- | ---- | ||
- | ===== Enable Port Forwarding ===== | + | ===== Enable Port Forwarding |
Uncomment or add this line to **/ | Uncomment or add this line to **/ | ||
Line 13: | Line 13: | ||
</ | </ | ||
- | Then | + | To enable the changes made in sysctl.conf, |
<code bash> | <code bash> | ||
Line 20: | Line 20: | ||
---- | ---- | ||
+ | |||
+ | ===== Enable IP Forwarding on the fly ===== | ||
+ | |||
+ | To enable IP Forwarding, without rebooting the system: | ||
+ | |||
+ | <code bash> | ||
+ | sysctl -w net.ipv4.ip_forward=1 | ||
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | <code bash> | ||
+ | echo 1 > / | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * However the result will not be preserved after rebooting the system. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
===== Check if Port Forwarding is Enabled ===== | ===== Check if Port Forwarding is Enabled ===== | ||
Line 36: | Line 60: | ||
**NOTE:** | **NOTE:** | ||
- | * 0: Port forwarding is not enabled. | + | |
- | * 1: Port forwarding is enabled. | + | |
</ | </ | ||
ubuntu/networking/configuration/ip_forwarding.1627297494.txt.gz · Last modified: 2021/07/26 11:04 by peter