iptables nat missing

Re: iptables nat missing

Postby fvdw » Sat Dec 07, 2013 5:48 pm

to show that there is a connection

on the nas you can see the tun device and ping the client, it works..
openvpn4.JPG


pinging the server (nas) from the client window s 7 pc works also....
openvpn3.JPG


so no need for NAT tables :whistle :geek:
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: iptables nat missing

Postby spidercat » Mon Dec 09, 2013 9:16 am

Hi fvdw,

first of all thanks a lot for your great work.
I confirm that your conf files works as you described.
But the result is the same as the TAP configuration, i'm able to reach server from client but no way to ping any other devices (or the gateway to use internet).
Enabling push "redirect-gateway def1 gave me two 0.0.0.0 routes entries in client route table.
And just adding push "route 192.168.1.0 255.255.255.0" is obviously not enough.
I suppose that iptables nat table is still needed to acomplish this ?
Right ?
Thanks a lot
have a nice day
spidercat
 
Posts: 15
Joined: Tue Jun 19, 2012 3:05 pm

Re: iptables nat missing

Postby spidercat » Mon Dec 09, 2013 5:13 pm

Hi,

i can confirm that after adding NAT module and after setting :

iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE

i'm able to browse my remote LAN network and everything works like i need.
Thanks a lot again dear fvdw
Regards
spidercat
 
Posts: 15
Joined: Tue Jun 19, 2012 3:05 pm

Re: iptables nat missing

Postby fvdw » Tue Dec 10, 2013 11:00 pm

:thumbup

Thanks for the feedback, agree that browsing the remote network was still a problem.
Ps do you also see and connect to the media servers and samba server via the vpn network ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: iptables nat missing

Postby spidercat » Mon Dec 16, 2013 2:07 pm

Hi,

sorry for the late answer.
I'll try smb and media server through VPN asap, at now i don't have an answer yet :-(
Thanks a lot again
spidercat
 
Posts: 15
Joined: Tue Jun 19, 2012 3:05 pm

Previous

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 5 guests