Commit 45004f35 authored by Murukesh Mohanan's avatar Murukesh Mohanan

typo in route

parent 267dbf33
Pipeline #1381 failed with stage
......@@ -92,16 +92,16 @@ What do these commands do? Let's examine them block by block.
ip link set veth1 up
ip netns exec default ip link set veth2 up
```
4. Route to the external network via your proper network interface (here, I'm assuming it's IP is 192.168.1.2.)
4. Route to the external network via your proper network interface (here, I'm assuming it's IP is 192.168.1.2.) (and route back)
```
ip route add 192.168.1.2/32 dev veth1
ip route add default via 192.168.1.2
ip netns exec default ip route add 10.0.0.0/24 dev veth2
```
5. Set up packet forwarding using iptables:
```
ip netns exec default ip route add 10.0.0.0/24 dev veth2
ip netns exec default iptables -A FORWARD -i veth2 -o eth0 -j ACCEPT
ip netns exec default iptables -A FORWARD -o veth2 -i eth0 -j ACCEPT
ip netns exec default iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -o eth0 -j MASQUERADE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment