Blame
| a4bd2f | Samuli Seppänen | 2025-02-11 11:14:54 | 1 | # How do I enable IP forwarding? |
| 2 | ||||
| 3 | If you are using a routing-based VPN (**dev tun**) 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. |
|||
| 4 | ||||
| 5 | On Windows, see [this TechNet article](https://technet.microsoft.com/en-us/library/cc962461.aspx). |
|||
| 6 | ||||
| 7 | On Linux, use the command: |
|||
| 8 | ``` |
|||
| 9 | echo 1 > /proc/sys/net/ipv4/ip_forward |
|||
| 10 | ``` |
|||
| 11 | ||||
| 12 | On OS X: |
|||
| 13 | ``` |
|||
| 14 | sudo sysctl -w net.inet.ip.forwarding=1 |
|||
| 15 | ``` |
