This however works fine:-
Basically I have a Server running Ubuntu Linux which has 2 network cards.
One (eth0 ) is set up to obtain ip addresses via DHCP and is connected to the Cable Modem.
The other (eth1) has a fixed IP address of 192.168.0.1 and is connected to a standard network Hub.
[Cable Modem]===eth0(DHCP)[Linux Server]eth1(192.168.0.1)===[HUB]===[Windows Client PC]
I have installed a DHCP daemon on the server so that hosts connected the the hub can obtain IP addresses via DHCP.
I have also set up Internet Sharing and a basic firewall using IPtables.
Server Setup
~~~~~~~~~~~~
ubuntu uses sudo for route access instead of allowing you to login as root.
root login can be allowed as follows :-
sudo passwd root
enter a password for root access.
iptables was setup as follows:-
logged on as "root", I first created a folder /etc/iptables and then created a rules file called iptables.rules
in this folder as follows :-
su root
enter root password
mkdir /etc/iptables
cd /etc/iptables/
gedit iptables.rules
I then entered the following in this file:-
# Generated by iptables-save v1.3.6 on Mon Oct 15 01:03:52 2007
*filter
:INPUT ACCEPT [24:3742]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [235:20135]
-A INPUT -i eth0 -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -j DROP
-A INPUT -i eth0 -p tcp -m tcp --dport 0 -j DROP
-A INPUT -i eth0 -p tcp -m tcp --dport 1 -j DROP
-A INPUT -p icmp -m icmp --icmp-type 8 -j DROP
COMMIT
# Completed on Mon Oct 15 01:03:52 2007
# Generated by iptables-save v1.3.6 on Mon Oct 15 01:03:52 2007
*nat

REROUTING ACCEPT [406:22899]

OSTROUTING ACCEPT [2:250]
:OUTPUT ACCEPT [2:250]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Mon Oct 15 01:03:52 2007
This will give you a very secure firewall with Internet connection sharing.
change file permissions as folows :-
chmod 755 /etc/iptables/iptables.rules
now install the DHCP daemon :-
As root enter the following:-
apt-get update
apt-get install dhcp
using gedit, edit the file /etc/dhcpd.conf and make sure it is as follows:-
# DHCP configuration
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 194.168.4.100, 194.168.8.100;
option ip-forwarding off;
range dynamic-bootp 192.168.0.100 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
}
Note the Above domain-name-servers are for my NTL connection. you will have to change these for your isp's
See list here for help:-
http://forum.portforward.com/YaBB.cg...num=1115416655
or try the command :-
dig | grep SERVER
All that remains now is to set up your interfaces and to make sure the iptables script runs at boot up.
you can do this as follows:-
as root, edit your /etc/network/interfaces file with gedit to be as follows:-
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
pre-up /sbin/iptables-restore < /etc/iptables/iptables.rules
auto eth1
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
Now Reboot your machine to enable changes
You should now be able to connect a machine to the hub and have Internet access on that machine.
Now the easy bit ( getting Phoenix server running on the server ).
As Phoenix dedicated server is a windows program you will have to install a program that allows it to be run in linux called Wine.
Install as follows:-
set user to root as above then type:-
apt-get update
apt-get install wine
On your windows machine you will need to install Phoenix, all updates and Phoenix server.
This will install into the directory C:\Program Files\PhoenixRC
Copy the C:\Program Files\PhoenixRC directory and its contents onto a CD or memory stick.
Now copy the phoenixRC folder onto your linux server into the directory /home/
yourusername/.wine/drive_c/Program Files
(notice the dot before wine)
when done, Right-Click on the /home/yourusername/.wine/drive_c/Program Files/phoenixRC folder and select "Make Link".
Drag this link to your desktop. You can then click on this link to open the folder then double click on phoenixServer.exe
to run the server.
Don't be tempted to create a link on your desktop directly to phoenixServer.exe as when it runs, it will not pick up
the available flying sites.
Note: The reason for copying the whole phoenix installation to the server is because the dedicated Phoenix server
application uses certain files in the PhoenixRC folder.
That's it. It takes a little time to set up but being linux, you will have a rock solid and secure server.
When you run Phoenix on your Host machine and select multiplayer you should now see your server twice, In the Lan
section and in the Internet section.
Select your server in the Lan section and your away.
Ubuntu linux is free and can be downloaded here Get Ubuntu | Download | Ubuntu
Have Fun
TasKiNG ( Dragonflies Linux Server )