I have an older working instance of ipfw with working VPN tunnel as a client of a commercial OpenVPN service and all traffic on this machine seems to be successfully going through the tunnel interface tun0. Is there a resource showing how to configure ipfw to have this machine act as a gateway so that multiple local machines can share the vpn connection. I tcpdump -i tun0 and I see the tun0 interfaces sees gateway routed traffic destined of external IPs but I do not see any responses. I think i need a ipfw nat rule but my
ipfw -q add 00100 nat 1 ip from any to any via tun0 out keep-state
Local traffic using the gateway is routed to the gateway external interface.
ipfw -q add 00100 nat 1 ip from any to any via tun0 out keep-state
Local traffic using the gateway is routed to the gateway external interface.