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 >

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 programme

Re: [CentOS] redirecting web requests from localhost

2013-08-29 Thread John Doe
From: Miguel González >     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. >    

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

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 diegors
.. Diego Sanchez Sent from my mobile -Original Message- From: Reindl Harald Date: Wed, 28 Aug 2013 23:38:49 To: CentOS mailing list Cc: ; Subject: Re: [CentOS] redirecting web requests from localhost Am 28.08.2013 21:49, schrieb "Miguel González" ": > I'm test

Re: [CentOS] redirecting web requests from localhost

2013-08-28 Thread diegors
...@centos.org Date: Wed, 28 Aug 2013 21:49:31 To: Reply-To: CentOS mailing list 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 certificate and I have configured the test server with the

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