PDA

View Full Version : Any Workaround for Installing in LAN?



playah12
01-09-2009, 01:08 AM
Hi,

I just installed CentOS on a VMWare Server Virtual Machine, because I want to try DA. I have a licence on my public IP.

The server has an IP address of 10.0.0.123/255.255.255.0.

I've read some posts of people who have DA working in such a situation, but they did not really explain how they got it working.

Does anybody know of a workaround to get the DA software installed in such a situation?

I need to test the software before we will purchase it. Also, as we aren't yet in a Data centre, the only option for us testing the software is in such an environment, or maybe someone has another option?

thanks

scsi
01-09-2009, 07:03 AM
You would have to port forward from your router to your internal ip.

floyd
01-09-2009, 07:58 AM
I posted a way to do this in detail some time ago. You'll have to search for it.

playah12
01-12-2009, 09:18 AM
Well. I found the post mentioned. But still no luck.

At the point the script is getting the update.tar.gz from the server the script gives a time out.

here's what I did.

eth0 -> 10.0.0.xx (local Ip)
eth0:0 -> public Ip

run setup

is eth0 the interface with the licence IP? -> yes
is 10.0.0xxx the ip number ? -> no
what is the ip? -> enter public ip

is this correct > y

downloading starts...

at the point the wget starts downloading the update from directadmin, the script generates a time out.

any suggestions?

Bram1nat0r
02-09-2009, 10:18 AM
A tcpdump would show that the script is trying to send out packets to the internet with the registered public IP address as SOURCE.

This will overcome that issue :

iptables -t nat -A POSTROUTING -s aa.bb.cc.dd -j SNAT --to-source ww.xx.yy.zz

aa.bb.cc.dd = public registered IP address
ww.xx.yy.zz = private IP address configured on interface

scsi
02-09-2009, 10:21 AM
su: iptables: command not found

Bram1nat0r
02-09-2009, 12:27 PM
this command need to be executed as root :

/sbin/iptables

if iptables isnt installed , use yum or apt-get to install

be sure to use iptables-save to makes the changes final

More info : http://www.faqs.org/docs/iptables/index.html