Hi, I've got an openVPN server up and running with a client connected
but what iptables commands do I have to run to forward IP traffic
between tun0 and eth0?
ifconfig produces this:
eth0 Link encap:Ethernet HWaddr 00

0:09:57:34:AE
inet addr:192.168.2.10 Bcast:192.168.2.255
Mask:255.255.255.0
inet6 addr: fe80::2d0:9ff:fe57:34ae/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:43127003 errors:0 dropped:0 overruns:0 frame:0
TX packets:48964901 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3661645438 (3.4 GiB) TX bytes:3251375468 (3.0 GiB)
Interrupt:10 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6055 errors:0 dropped:0 overruns:0 frame:0
TX packets:6055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4412334 (4.2 MiB) TX bytes:4412334 (4.2 MiB)
tun0 Link encap:UNSPEC HWaddr
ED-FE-3B-F3-68-00-F4-1F-00-00-00-00-00-00-00
-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:40 (40.0 b)
iptables -L produces this:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
I can ping 10.8.0.1 from the openVPN client with no problems but I
can't ping 192.168.2.10. What am I missing here????
Thanks in advance,
Shawn