My CentOS-7 home server has a static IP address.
Is there a simple way of organizing the hpptd server so that it is accessible through this address at a remote host, but is accessed at its 192.168 address by a laptop on the WiFi LAN?
My CentOS-7 home server has a static IP address.
Is there a simple way of organizing the hpptd server so that it is accessible through this address at a remote host, but is accessed at its 192.168 address by a laptop on the WiFi LAN?
Is the static IP address that you mention public or private?
You could use Limit statements in apache or iptables firewalling to do this.
Barry
Barry Brimer wrote:
My CentOS-7 home server has a static IP address.
Is there a simple way of organizing the hpptd server so that it is accessible through this address at a remote host, but is accessed at its 192.168 address by a laptop on the WiFi LAN?
Is the static IP address that you mention public or private?
It is a public IP address.
You could use Limit statements in apache or iptables firewalling to do this.
I guess there could be a way of organizing what I want through shorewall, which I am running on my home server?
On 2/15/2016 3:57 PM, Timothy Murphy wrote:
My CentOS-7 home server has a static IP address.
Is there a simple way of organizing the hpptd server so that it is accessible through this address at a remote host, but is accessed at its 192.168 address by a laptop on the WiFi LAN?
are you also running your own DNS at home? is this httpd server 'dual homed' and have a NIC on both the internet side and your local LAN ?
you could run split DNS, so on your LAN, mydomain.com is 192.168.x.x while on the internet, mydomain.com is the actual IP address.
John R Pierce wrote:
My CentOS-7 home server has a static IP address.
Is there a simple way of organizing the hpptd server so that it is accessible through this address at a remote host, but is accessed at its 192.168 address by a laptop on the WiFi LAN?
are you also running your own DNS at home?
I'm not running my own DNS server, and would prefer not to.
is this httpd server 'dual homed' and have a NIC on both the internet side and your local LAN ?
I'm not quite sure what "dual-homed" means. The machine on which httpd runs has a fixed IP address. Is there any way this machine could be accessed on the local LAN through this IP address, rather than 192.168... ?
you could run split DNS, so on your LAN, mydomain.com is 192.168.x.x while on the internet, mydomain.com is the actual IP address.
I'd rather not run a DNS server on my machine. I tried this some years ago, and ran into trouble.
On Tue, 16 Feb 2016 09:15:43 +0000 Timothy Murphy wrote:
you could run split DNS, so on your LAN, mydomain.com is 192.168.x.x while on the internet, mydomain.com is the actual IP address.
I'd rather not run a DNS server on my machine. I tried this some years ago, and ran into trouble.
Why not put mydomain.com 192.168.whatever in your /etc/hosts file? No need to run a dns server to hard-code one single lookup like that.
Frank Cox wrote:
Why not put mydomain.com 192.168.whatever in your /etc/hosts file? No need to run a dns server to hard-code one single lookup like that.
Thanks very much, that seems to work. I added "www.myserver.com" to the line starting 192.168.2.5.
On 2/16/2016 1:18 PM, Timothy Murphy wrote:
Frank Cox wrote:
Why not put mydomain.com 192.168.whatever in your /etc/hosts file? No need to run a dns server to hard-code one single lookup like that.
Thanks very much, that seems to work. I added "www.myserver.com" to the line starting 192.168.2.5.
My home firewall (pfsense) runs a local DNS caching resolver (unbound), and I can add IP-name overrides to it via the web UI... I dislike putting stuff in /etc/hosts as its so 'out of sight, out of mind'
On Tue, Feb 16, 2016 at 7:57 AM, Timothy Murphy gayleard@eircom.net wrote:
My CentOS-7 home server has a static IP address.
Is there a simple way of organizing the hpptd server so that it is accessible through this address at a remote host, but is accessed at its 192.168 address by a laptop on the WiFi LAN?
Your Wifi Lan have DNS, you may configure host name there so you can access via host name and not memorize ip
-- Timothy Murphy gayleard /at/ eircom.net School of Mathematics, Trinity College, Dublin
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos