| 1 | = How do I enable IP forwarding? = |
| 2 | |
| 3 | {{{ |
| 4 | #!html |
| 5 | <p>If you are using a routing-based VPN (<strong>dev tun</strong>) and you would like to configure your OpenVPN server or client to act as a VPN gateway for a LAN, you should enable IP forwarding. Also make sure that your network interface is in promiscuous mode.</p> |
| 6 | <p>On Windows 2000/XP, see <a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q230082">this KB article</a>.</p> |
| 7 | <p>On Linux, use the command:</p> |
| 8 | <blockquote> |
| 9 | <pre><strong>echo 1 > /proc/sys/net/ipv4/ip_forward</strong></pre> |
| 10 | </blockquote> |
| 11 | }}} |
| 12 | |
| 13 | [wiki:FAQ Return to FAQ] |
| 14 | |