Re: [CentOS] redirecting web requests from localhost

2013-08-29 Thread John Doe
From: Miguel González miguel_3_gonza...@yahoo.es     I´m testing a server and try to simulate a server in production. We have a SSL certificate and I have configured the test server with the same servername as it is in production. To access it, I change the hosts file in my laptop to reach

Re: [CentOS] redirecting web requests from localhost

2013-08-29 Thread Carl T. Miller
Miguel González wrote: However, the Java application running in the server tries to access some local web content. I have changed the hosts file and some applications (ping, wget) they get the local IP address. However nslookup and maybe our Java application (I didn´t have the programmer

Re: [CentOS] redirecting web requests from localhost

2013-08-29 Thread Gary Hodder
On Wed, 2013-08-28 at 21:49 +0200, Miguel González wrote: Dear all, I´m testing a server and try to simulate a server in production. We have a SSL certificate and I have configured the test server with the same servername as it is in production. To access it, I change the hosts file

[CentOS] redirecting web requests from localhost

2013-08-28 Thread Miguel González
Dear all, I´m testing a server and try to simulate a server in production. We have a SSL certificate and I have configured the test server with the same servername as it is in production. To access it, I change the hosts file in my laptop to reach the test server. However, the Java

Re: [CentOS] redirecting web requests from localhost

2013-08-28 Thread diegors
...@yahoo.es Sender: centos-boun...@centos.org Date: Wed, 28 Aug 2013 21:49:31 To: centos@centos.org Reply-To: CentOS mailing list centos@centos.org Subject: [CentOS] redirecting web requests from localhost Dear all, I´m testing a server and try to simulate a server in production. We have a SSL

Re: [CentOS] redirecting web requests from localhost

2013-08-28 Thread diegors
.. Diego Sanchez Sent from my mobile -Original Message- From: Reindl Harald h.rei...@thelounge.net Date: Wed, 28 Aug 2013 23:38:49 To: CentOS mailing listcentos@centos.org Cc: miguel_3_gonza...@yahoo.es; dieg...@gmail.com Subject: Re: [CentOS] redirecting web requests from localhost Am

Re: [CentOS] redirecting web requests from localhost

2013-08-28 Thread Markus Falb
On 28.Aug.2013, at 21:49, Miguel González wrote: So, how can I redirect for instance 443 traffic to a specific IP to the local IP address of the local server? I have tried this: iptables -t nat -A PREROUTING -d XXX.XXX.XXX.XXX -p tcp --dport 80 -j DNAT --to YYY.YYY.YYY.YYY I

Re: [CentOS] redirecting web requests from localhost

2013-08-28 Thread Markus Falb
On 29.Aug.2013, at 02:55, Markus Falb wrote: On 28.Aug.2013, at 21:49, Miguel González wrote: So, how can I redirect for instance 443 traffic to a specific IP to the local IP address of the local server? I have tried this: iptables -t nat -A PREROUTING -d XXX.XXX.XXX.XXX -p tcp