Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Dave Brown on February 28, 2003, 11:00:50 PM

Title: Multiple public IP's On 1 sme Box
Post by: Dave Brown on February 28, 2003, 11:00:50 PM
Maybe I am stupid but I need some help, I have 1 SME box. I would like to have it hold all of my 13 Public IP address' and Route to the Unsage Windows Servers behind it, can this Be done?? and How, the goal is like this


eth 1 xxx.xxx.xxx.170-175 (public address)
SME 5.6
eth 0 192.168.0.1 (private)

Windows 192.168.0.2 IIS and FTP etc Public address is actually xxx.xxx.xxx.171 but forward any requests on that ip from the SME 5.6

Etc

Thanks

Dave
Title: Re: Multiple public IP's On 1 sme Box
Post by: Joseph on March 23, 2003, 11:13:25 AM
Dave,

I dont know if you figured out how to do this as your post is a month old, but here goes...

To add multiple IP's on your SME just use ifconfig, at command line, and add IP aliases for each of the IP numbers you want it to use:

ifconfig eth1 alias xxx.xxx.xxx.171 netmask xxx.xxx.xxx.xxx
ifconfig eth1 alias xxx.xxx.xxx.172 netmask xxx.xxx.xxx.xxx
ifconfig eth1 alias xxx.xxx.xxx.173 netmask xxx.xxx.xxx.xxx

You get the drift as you need to run this for all your IP set.  Clearly, you need to verfiy and use the correct netmask for this IP range.

Run "ifconfig eth1" to test and make sure the IP's were assigned right.  Once tested you just need to install the approriate RPM's for port forwarding and packetfiltering from:

http://mirror.contribs.org/smeserver/contribs/dmay/mitel/contrib/

This will install an interface in the server manager where you can setup the sme to foward the approriate ports to the right machines on the internal network.  I haven't tested the port forwarding on a multiple public IP NIC but it should work the same.

cheers.
Joseph