Re: [CentOS] redirecting web requests from localhost
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 in my laptop to reach the test server. 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 available to debug it) are getting the production server IP. 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 XXX.XXX.XXX.XXX - IP of production server YYY.YYY.YYY.YYY - local IP of the test server Thanks Miguel You have the prerouting but you have to forward it as well. This allows a connection on the Internet to make a connection to a internal machine on my local network. Router machine's local network ip 10.0.0.1 on eth1. 10.0.0.5 internal machine. iptables -A FORWARD -p tcp -i ppp0 -o eth1 -d 10.0.0.5 --dport 1234 -j ACCEPT iptables -t nat -A PREROUTING -p tcp -i ppp0 --dport 1234 -j DNAT --to-destination 10.0.0.5:1234 ip and ports changed to protect the guilty :) Gary. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Mplayer + jack
On Tue, 2013-05-28 at 16:32 +0100, Karanbir Singh wrote: On 05/27/2013 01:07 PM, Gary Hodder wrote: Hi all, anyone know of a repo for 6.4 that contains mplayer+gui with jack compiled into it? iirc, the atrpms.net mplayer is built like that - but check Compiled from source and working. Thanks Gary. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Mplayer + jack
Hi all, anyone know of a repo for 6.4 that contains mplayer+gui with jack compiled into it? Thanks Gary. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] lxde
On Mon, 2013-04-29 at 20:12 +0200, Ibrahim Yurtseven wrote: Scott Robbins wrote: Anyway, ScientificLinux forums have a post about building lxde. It is time consuming, but if you really want it http://scientificlinuxforum.org/index.php?showtopic=759 I googled for epel and lxde and found this repo: http://repos.fedorapeople.org/repos/cassmodiah/LXDE.epel6/ That is 32 bit, the machine I want to put it on is 64 bit. It is a dual core 2Ghz processor with 3 gig ram so will see how it stands up running the apps I want under gnome as a server. Thanks for the replies. Gary. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] lxde
Hi all, anyone know when lxde will be available for centos? Fedora lxde was nice but its end of life is far to short for a server. Thanks Gary. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos