Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-09-2014, 11:31 PM   #1
LQ Newbie
Registered: Apr 2014
Posts: 3

Rep: Reputation: Disabled
Cool Local webserver using dnsmasq to forward https

Hi Guy,

Im running a local webserver ( on a xubuntu 13.10 box for clients to access on my LAN only.

The webserver is NOT connected to the internet, it uses a USB wifi dongle configured to work as an access point using hostapd.

Currently, i have configured dnsmasq.conf to resolve all .com etc http reqests to my webserver:
# Add domains which you want to force to an IP address here.
# The example below send any host in to a local
# web-server.
address=/https/     <------ DOESNT WORK :/
This works pretty good for all request over http using port 80, but if one of the clients browses to a HTTPS site, they dont get forwarded to my webserver.

can someone suggest a way of getting this to work? possibley with iptables or something?

Old 04-10-2014, 05:13 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
this will not be about networking, but the configuration of dnsmasq, or your understanding of https services. whatever you're requesting, you'll be doing the same DNS lookup, and dnsmasq will respond according to it's configuration. Do you have an https service for the browser to connect to? Remember that DNS lookups have NOTHING to do with TCP ports, an HTTPS request making a DNS lookup will not, can not, be directly connected to a different port. If you want to rule out DNS, run dnsmasq in debug mode, or use a tool like wireshark to see what DNS requests are made to the server.

moved to Linux - Newbie.


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
Forward external https through Linux box to http local 192.168* addy? the86d Linux - Networking 3 06-27-2013 01:37 PM
HTTPS Webserver Configuration rajaguru14 Linux - Newbie 2 01-17-2009 08:04 AM
Forward local mail to another local host using sendmail loopy69 Linux - Server 5 02-26-2008 06:38 PM
DNSMASQ: Forward queries with no domain senorsnor Linux - Networking 1 10-30-2006 05:57 AM
Local webserver -- How to deny all client install their local web server--Please help b:z Linux - Networking 13 04-16-2005 08:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:43 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