LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-23-2009, 01:54 PM   #1
jclj
LQ Newbie
 
Registered: Dec 2009
Location: Vermont
Posts: 5

Rep: Reputation: 0
Routing issues with Wireless Router to Linux Server with NoCatSplash


I posted this in Wireless Networking but after seeing this Forum decided it should be here as well.

I am having a problem involving NoCatSplash and routing. First I will explain my network layout and then I'll explain the problems.

I have a wireless router on subnet ip 192.168.1.1. The wireless router is flashed with DD-WRT.

The router is acting as a gateway using 192.168.103.202 as the Internet address with 192.168.103.1 as the gateway and 192.168.101.10 as the DNS server. Wireless clients are issued an IP through DHCP.

Here is the traffic flow that currently works. (Works means the requesting node can browse the web successfully).

192.168.1.XX request a web page
192.168.1.1 redirects that request to 192.168.103.8:8080 (DansGuardian)
Dansguardian on 192.168.103.8 process the request and then
The request is passed through the tunnel to XXX.XXX.97.20:8080
XXX.XXX.97.20:8080 (DansGuardian then passes the request to 127.0.0.1:3128 (Squid)
Squid passes the request to XXX.XXX.97.20's Gateway to the Internet.
All this works fine.

OR This works also...

192.168.1.XX request a web page
192.168.1.1 redirects that request to XXX.XXX.97.20:8080 (DansGuardian)
Dansguardian on XXX.XXX.97.20 process the request and then
The request is passed to 127.0.0.1:3128 (Squid)
Squid passes the request to XXX.XXX.97.20's Gateway to the Internet.

Since the above procedure works and as you will read below I can make the NoCat procedure work from a browser, I know I am close to resolving my problems but frankly I have run out of ideas. I have tried Port forwarding, Static routing and using the HTTP Redirection option on the wireless router without success. I am a novice so I may be doing something incorrectly.

When NoCatSplash is added to the mix, it does not work. The traffic flow below shows what that would look like.

192.168.1.XX request a web page
192.168.1.1 redirects that request to XXX.XXX.97.20 (NO PORT)
The request is automatically routed through the tunnel to the XXX.XXX.97.20 Linus server.
XXX.XXX.97.20 then presents a splash page to the requester (Port 5280) If accepted,the URL requested is passed to XXX.XXX.97.20:8080 (DansGuardian) who then passes the request to 127.0.0.1:3128 (Squid)
Squid passes the request to XXX.XXX.97.20's Gateway to the Internet.

NoCatSplash lives on the XXX.XXX.97.20 linux server and when running intercepts any traffic presenting a splash page on Port 5280 accepting the client if the agree button is clicked.

I can make this work perfectly from my PC or a remote PC eg:192.168.101.10 by using the browser Proxy settings, entering XXX.XXX.97.20 with NO PORT.

All the IPtable redirection needed to make NoCatSplash redirect to DansGuardian is in place and works.

If a port is entered I get the error message on the NoCat Console of:
** WARNING **: File not found: /usr/local/share/NoCatSplash/htdocs/http://###.###.97.20:5280/
I have no idea where NoCat is getting this address.

The second issue I am facing is MAC Addresses are used by NoCatSplash's access.fw configuration. If I am on the same subnet as the XXX.XXX.97.20 Server the Mac Address is passed, otherwise it is not. I have worked around this issue for now by writing a piece of code in the access.fw file to assign the correct Mac Address based on the IP.

All this is complicated by NoCat's logging feature not working.

Here is what I need to be able to resolve.

1. I need to know how to get the Wireless Router to redirect all HTTP traffic to XXX.XXX.97.20 with NO PORT.

2. I need to resolve the Mac Address not being passed to the NoCatSplash access.fw routine.

3. If anyone knows how to bring NoCat Logging to life that would be great.

Any help is appreciated.

Happy Holidays
--Joe
 
Old 01-17-2010, 07:24 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place.

I closed the old thread since you want to post in this one. In the future please use the Report button to request that a moderator move your thread.
 
Old 01-19-2010, 07:09 AM   #3
jclj
LQ Newbie
 
Registered: Dec 2009
Location: Vermont
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the assist.
 
  


Reply

Tags
nocatsplash, routing, splashd, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing issues with dual interfaces on debian server flybob Linux - Networking 9 09-28-2009 07:41 AM
Routing problems with wireless router The_Nerd Linux - Networking 1 11-18-2008 11:43 AM
Setup a Linux network with 1 server, 4pcs wired & wireless, wireless router, & hub bhowerton Linux - Newbie 1 04-05-2008 03:33 PM
routing, using wireless router as wap microsoft/linux Linux - Wireless Networking 2 10-28-2006 05:55 PM


All times are GMT -5. The time now is 01:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration