Re: [CentOS] Alternative IP addresses

2016-02-17 Thread Gener Badenas
On Tue, Feb 16, 2016 at 7:57 AM, 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?
>
>
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
>



-- 
Java  and Groovy

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Alternative IP addresses

2016-02-16 Thread John R Pierce

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'



--
john r pierce, recycling bits in santa cruz

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Alternative IP addresses

2016-02-16 Thread Timothy Murphy
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.

-- 
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


Re: [CentOS] Alternative IP addresses

2016-02-16 Thread Frank Cox
On Tue, 16 Feb 2016 09:15:43 +
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.

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Alternative IP addresses

2016-02-16 Thread Timothy Murphy
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?


-- 
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


Re: [CentOS] Alternative IP addresses

2016-02-16 Thread Timothy Murphy
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.


-- 
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


Re: [CentOS] Alternative IP addresses

2016-02-15 Thread John R Pierce

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, recycling bits in santa cruz

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Alternative IP addresses

2016-02-15 Thread Barry Brimer



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
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Alternative IP addresses

2016-02-15 Thread Timothy Murphy
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?


-- 
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