Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-28-2016, 01:39 PM   #1
LQ Newbie
Registered: Mar 2016
Posts: 2

Rep: Reputation: Disabled
Behind TMG proxy using laptop as router as a hotspot for wifi, routing traffic from wlan0 to localhost:1234

Hi folks
I'm behind TGM proxy , connected via LAN on eth0 which goes to my laptop. Creating socks proxy tunneled with ssh via cntlm can bypass the proxy which is fine for my laptop. But I struggle to create a hotspot using wifi (wlan0) on my laptop and then route all the traffic from wlan0 (which creates the hotspot) to localhost:1234 (ssh tunnel to outside world) and all the traffic arriving on localhost:1234 to redirect to wlan0 where the hotspot is created. Any idea for a iptables / hostapd config ? I assume running two ssh tunnels on two different ports would be easier for the configuration, one port left untouched by iptables for internet on laptop, the other used for wifi.
Old 03-30-2016, 01:48 AM   #2
Registered: Sep 2006
Posts: 82

Rep: Reputation: 20
Some lappys struggle to use wlan0 and eth0 simultaneously and in conjunction with a hotspot...because they share resources like power and buss's

is your lappy one of these?

Not that I expect this resolved the issue but Please mark posts as useful and mark the thread solved if issue is resolved...
Old 03-30-2016, 10:51 AM   #3
LQ Newbie
Registered: Mar 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Nope I'm good setting up hotspot and routing wlan0 via eth0, both by hostapd or create_ap utlis. Where I struggle is I need to route the traffic coming from wlan to go through socks proxy on localhost port, not directly outside via eth0.


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 traffic to wlan0 hotspot server using iptables - troubles scotthill Linux - Wireless Networking 1 05-24-2015 10:53 AM
I've set up a hotspot in linux,how to forward the network traffic to a socks5 proxy? MarkZar Linux - Networking 1 12-26-2014 06:15 AM
double laptop as a wifi hotspot deostroll Zorin OS 1 11-03-2013 04:54 AM
how can I turn my linux laptop into a wifi hotspot? james_larson Linux - Networking 6 04-03-2012 03:44 PM
anybody know any programs i can use to turn my laptop into a wifi hotspot? james_larson Linux - Newbie 5 01-12-2011 08:08 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:08 AM.

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