www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Problems with NAT and DHCP

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Networking
View previous topic :: View next topic  
Author Message
cobrastyle



Joined: 04 Feb 2010
Posts: 3
Location: Cracow/Poland

PostPosted: Tue Feb 23, 2010 5:06 pm    Post subject: Problems with NAT and DHCP Reply with quote

Hello,

I want to create WiFi in my school using ZeroShell. I set up the server, configured Captive Portal, but I have some problems with NAT & DHCP.

Firstly, there is a sketch of my school network:


As you can see, ZeroShell server is connected to the Internet via main server witch DHCP. I want to create subnet for WiFi (for example 192.168.0.0/24) but there is one problem.
At this moment, I created the bridge between ETH00 (to main server) and ETH01 (to ap) to test Captive Portal and it works correctly, but ZeroShell's DHCP doesn't work and computers, with are connected via AP gets IP from main server.

I tried to create NAT. In router menu I set ETH00 as NAT enabled interface. After it, I enabled DHCP on ETH01 (192.168.0.1), and created static route with destination 195.150.232.254.

When everything was done, I tried to connect to the Internet from my laptop. DHCP worked correctly, but when I opened browser, I saw nothing, even CaptivePortal login interface. When I tried to connect to the server via 192.168.1.1, CP arrived and I logged in. After it I was able to acces the ZeroShell web interface, but without connection to the Internet.

Do you have any ideas why I wasn't able to connect to the Internet? I was trying to create NAT according to this ZeroShell HOWTO http://digidownload.libero.it/smasherdevourer/schede/linux/zeroshellEN.pdf
Back to top
View user's profile Send private message
ppalias



Joined: 17 Dec 2008
Posts: 1151
Location: Athens, Greece

PostPosted: Wed Feb 24, 2010 7:18 am    Post subject: Reply with quote

Try to remove the bridge. Then remove the NAT, as my guess is that the main server is NATing traffic that goes to the internet.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Networking All times are GMT
Page 1 of 1

 
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


Powered by phpBB © 2001, 2005 phpBB Group