Browse code

Add IP forwarding config to archlinux guide

I had this small issue when following this guide on my Arch box, and I don't think it is specific to any configuration I have.

Renato Riccieri Santos Zannon authored on 2013/05/30 13:56:08
Showing 1 changed files
... ...
@@ -67,3 +67,21 @@ To start on system boot:
67 67
 ::
68 68
 
69 69
     sudo systemctl enable docker
70
+    
71
+Network Configuration
72
+---------------------
73
+
74
+IPv4 packet forwarding is disabled by default on Arch, so internet access from inside
75
+the container may not work.
76
+
77
+To enable the forwarding, run as root on the host system:
78
+
79
+::
80
+
81
+    sysctl net.ipv4.ip_forward=1
82
+    
83
+And, to make it persistent across reboots, enable it on the host's **/etc/sysctl.conf**:
84
+
85
+::
86
+
87
+    net.ipv4.ip_forward=1