Net Isolation

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2
Author Message
fpaquin92
DD-WRT Novice


Joined: 04 Aug 2017
Posts: 25

PostPosted: Sun Jul 01, 2018 12:01    Post subject: Reply with quote
Per Yngve Berg wrote:
That is LAN-LAN (10.50.0.1 and 10.50.0.2, same sub-net)

You need to enter a route to the other sub-nets behind the 941ND. Can you ping the C7 (10.50.0.1) from a client on these sub-nets?


I just tried and no access to internet and unable to ping other the C7.

I was wondering why i put a static ip to wan in 941ND, because there is to WAN connected physically. Did i need to assing WAN to ath0 in the networking tab ?

Did i need to change wireless mode from WDS Station to Client bridge or client ?
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Sun Jul 01, 2018 12:58    Post subject: Reply with quote
Disable the WAN port or assign it as a 5. LAN port.

Have you enabled NAT on the C7?

iptables -I POSTROUTING -t nat -o `get_wanface` -j MASQUERADE

Paste in Administration->Commands and save as firewall.
fpaquin92
DD-WRT Novice


Joined: 04 Aug 2017
Posts: 25

PostPosted: Sun Jul 01, 2018 13:10    Post subject: Reply with quote
Per Yngve Berg wrote:
Disable the WAN port or assign it as a 5. LAN port.

Have you enabled NAT on the C7?

iptables -I POSTROUTING -t nat -o `get_wanface` -j MASQUERADE

Paste in Administration->Commands and save as firewall.


I disabled WAN port, but now i can't put a ip adress to wan, or it has a other way to put a static ip to the wan ?
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Sun Jul 01, 2018 13:14    Post subject: Reply with quote
It doesn't need an IP address.
fpaquin92
DD-WRT Novice


Joined: 04 Aug 2017
Posts: 25

PostPosted: Sun Jul 01, 2018 13:16    Post subject: Reply with quote
Per Yngve Berg wrote:
The gateway is wrong. It cannot be on the same sub-net as the one you are routing to.

When the router have an interface to 10.50.0.0/24, it already know where it is and does not need a route.

Is the 941ND connected LAN-LAN or WAN-LAN with the C7?

Take an example:

LAN address of C7: 10.50.0.1
WAN address of 941ND: 10.50.0.2 gateway 10.50.0.1
LAN address of 941ND: 10.51.0.1

941ND is set in router mode.

Static route on C7 will be:
10.51.0.0/24 gateway 10.50.0.2


Where i put the WAN Address od 941ND ?
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Sun Jul 01, 2018 13:46    Post subject: Reply with quote
No WAN, the LAN address 10.50.0.2 only.
Use it as gateway in the route.
fpaquin92
DD-WRT Novice


Joined: 04 Aug 2017
Posts: 25

PostPosted: Sun Jul 01, 2018 13:49    Post subject: Reply with quote
Per Yngve Berg wrote:
No WAN, the LAN address 10.50.0.2 only.
Use it as gateway in the route.


Haaaaaaaaaaaaa !!!!

Now it make sense for me ! Sorry Razz

Did i need to made a route in 941ND ?
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Sun Jul 01, 2018 13:53    Post subject: Reply with quote
No, because it will have the C7 as default route.
fpaquin92
DD-WRT Novice


Joined: 04 Aug 2017
Posts: 25

PostPosted: Sun Jul 01, 2018 14:17    Post subject: Reply with quote
Per Yngve Berg wrote:
No, because it will have the C7 as default route.


I tried and doesn't work, still don't have access to internet. Unable to ping my C7

Is my setting are OK ?

https://drive.google.com/folderview?id=1ODvZE3gihldBB77fWraBNOTjly8wOe6y

Thanks you very much for your help
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 6870
Location: Romerike, Norway

PostPosted: Sun Jul 01, 2018 14:25    Post subject: Reply with quote
941ND show local ipaddress 10.50.0.1. It should have been 10.50.0.2 Isn't 10.50.0.1 the address of the C7?
fpaquin92
DD-WRT Novice


Joined: 04 Aug 2017
Posts: 25

PostPosted: Sun Jul 01, 2018 14:28    Post subject: Reply with quote
Per Yngve Berg wrote:
941ND show local ipaddress 10.50.0.1. It should have been 10.50.0.2 Isn't 10.50.0.1 the address of the C7?


Local ip of 941nd is set to 10.51.0.1 gw 10.50.0.1

The C7 address is 10.50.0.1
fpaquin92
DD-WRT Novice


Joined: 04 Aug 2017
Posts: 25

PostPosted: Thu Aug 09, 2018 13:32    Post subject: Reply with quote
It works !

I had to put the 941nd on Gateway mode and the wifi as client instead of WDS station. It runs is own dhcp server and act as a gateway. I put net isolation on each virtual ap and NAT became available to select. In router mode NAT is unavailable when we unbridge the virtual networks.

Thanks a lot for help you give to me !
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum