iceget
dear team,
i have installed a fresh openvpn server on pfsense.
i successfully connect via debian squeeze openvpn client to the server.
all working fine. but now, i want to the following:
on my debian client, i have a primary ip:
eth0:
ip 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.254
i also have a second virtual interface:
eth0:0
ip 10.0.2.1
netmask 255.255.255.0
now i have a windows 7 client, with the following ip:
ip 10.0.2.2
netmask 255.255.255.0
gw 10.0.2.1
i want access the openvpn server over the windows 7 client.
from debian, i can access the whole openvpn network, without any problems.
but in windows, i cannot ping anything from the openvpn network..
i can ping 10.0.2.1, and 10.0.2.2.
now i have tried a iptables command on debian:
# activating portforwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
# access openvpn network
iptables -t nat -I POSTROUTING -s 10.0.1.0/24 -j MASQUERADE
but it doesnt works..
my debian is a raspberry pi, and i only want to use it for the
windows client to access the vpn network.
can anybody helps me?
thanks!
many greets iceget