User Tools

Site Tools


ubuntu:networking:configuration:ip_forwarding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:networking:configuration:ip_forwarding [2021/07/26 11:04] peterubuntu: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 Permanantly =====
  
 Uncomment or add this line to  **/etc/sysctl.conf**: Uncomment or add this line to  **/etc/sysctl.conf**:
Line 13: Line 13:
 </file> </file>
  
-Then  run:+To enable the changes made in sysctl.conf, run:
  
 <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
 +</code>
 +
 +or
 +
 +<code bash>
 +echo 1 > /proc/sys/net/ipv4/ip_forward
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  The setting is changed instantly.
 +
 +  * However the result will not be preserved after rebooting the system.
 +
 +</WRAP>
 +
 +----
 +
  
 ===== Check if Port Forwarding is Enabled ===== ===== Check if Port Forwarding is Enabled =====
Line 36: Line 60:
 **NOTE:** **NOTE:**
  
-  * 0:  Port forwarding is not enabled. +  * **0**:  Port forwarding is not enabled. 
-  * 1:  Port forwarding is enabled.+  *  **1**:  Port forwarding is enabled.
 </WRAP> </WRAP>
  
ubuntu/networking/configuration/ip_forwarding.1627297494.txt.gz · Last modified: 2021/07/26 11:04 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki