LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-09-2014, 11:31 PM   #1
M4DM4NZ
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 (192.168.1.1) 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:
Code:
# Add domains which you want to force to an IP address here.
# The example below send any host in double-click.net to a local
# web-server.
address=/#/192.168.1.1
address=/com/192.168.1.1
address=/org/192.168.1.1
address=/gov/192.168.1.1
address=/net/192.168.1.1
address=/http/192.168.1.1
address=/https/192.168.1.1     <------ DOESNT WORK :/
address=/./192.168.1.1
address=/nz/192.168.1.1
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?

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

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration