Koozali.org: home of the SME Server

Port Forwarding for UT Strikeforce

Evadream

Port Forwarding for UT Strikeforce
« on: July 10, 2001, 04:21:28 AM »
Hi all,

i'm a newbie under linux :). The actual situation of my little network is :

A gateway under linux ( esmith 4.1.1 )
3 clients under 98&2k

The SF server is a w98 machine ( fix IP : 192.168.1.50 ) People from the outside can play on this server w/o any problem. I've added this two lines in rc.sysinit :

ipmasqadm portfw -a -P udp -L my_ip 7777 -R 192.168.1.50 7777
ipmasqadm portfw -a -P udp -L my_ip 7778 -R 192.168.1.50 7778

It works fine.

Now i want that some people from the outside can access to the admin page of the server. I configure it on the 8000 port and i can access to it localy : http//192.168.1.50:8000. I've got no problem.

I have put this in my rc.sysinit file :

ipmasqadm portfw -a -P tcp -L my_ip 8000 -R 192.168.1.50 8000

But it doesn't work although it is well loaded ( sorry for the english :p ). I can see it by taping ipmasqadm portfw -l  > it works fine for people inside the network ( by taping 192.168.1.50:8000 ) but it does'nt work for outside people.

So any idea ? Thx a lot.

Paul Nesbit

Re: Port Forwarding for UT Strikeforce
« Reply #1 on: July 10, 2001, 06:33:46 AM »
Evadream wrote:
>[...]
>
> I have put this in my rc.sysinit file :
>
> ipmasqadm portfw -a -P tcp -L my_ip 8000 -R 192.168.1.50 8000
>
> But it doesn't work although it is well loaded [...]

Charlie Brady contributed an rpm that allows easy port forwarding, and Darrel May wrote a Howto on how to use it.  (And where to get it, IIRC.)

http://netsourced.com/servers/docs/ipportfw-howto.html

Paul

Evadream

Re: Port Forwarding for UT Strikeforce
« Reply #2 on: July 10, 2001, 11:04:52 AM »
Ok thx :) But i want to understand why it doesn't work now.

Evadream

Re: Port Forwarding for UT Strikeforce
« Reply #3 on: July 11, 2001, 03:22:48 AM »
I have installed this rpm, but when i tape db configuration .... i've got a command not found although db is in the .sbin.e-smith directory

I've downloaded the rpm inside this directory et install it with rpm -Uvh . Any idea ?
THX.

Paul

Re: Port Forwarding for UT Strikeforce
« Reply #4 on: July 11, 2001, 05:07:26 AM »
Evadream wrote:
>
> I have installed this rpm, but when i tape db configuration
> .... i've got a command not found although db is in the
> .sbin.e-smith directory

What version of e-smith are you using?

 
> I've downloaded the rpm inside this directory et install it
> with rpm -Uvh . Any idea ?

Can you explain exactly what happens you do try the following:

  /sbin/e-smith/db configuration setprop masq TCPForwards port,ip


What is the output of

  grep masq /home/e-smith/configuration

when you do try this?

 
Paul

Evadream

Re: Port Forwarding for UT Strikeforce
« Reply #5 on: July 11, 2001, 05:16:13 AM »
Hi !

> Version : 4.1.1

> /sbin/e-smith/db configuration setprop masq TCPForwards port,ip
   bash: db: command not found

> Output of grep...
masq=service|InitscriptOrder|82|TCPForwards|8000,192.168.1.50|UDPForwards|7778,1
92.168.1.50|status|enabled

Hin hin !=)

Evadream

Re: Port Forwarding for UT Strikeforce
« Reply #6 on: July 11, 2001, 05:35:32 AM »
It's amazing : > Output of grep...
masq=service|InitscriptOrder|82|TCPForwards|8000,192.168.1.50|UDPForwards|7778,1
92.168.1.50|status|enabled

But an ipmasqadm portfw -l gives nothing !

Paul

Re: Port Forwarding for UT Strikeforce
« Reply #7 on: July 11, 2001, 05:53:35 AM »
Evadream wrote:
>
> Hi !
>
> > Version : 4.1.1

Much of the e-smith firewalling code was re-written for 4.1.2.  e-smith-ipportfw will work correctly with 4.1.2.  Please upgrade.
 
> /sbin/e-smith/db configuration setprop masq TCPForwards
> port,ip
> bash: db: command not found
>
> Output of grep...
> masq=service|InitscriptOrder|82|TCPForwards|8000,192.168.1.50|UDPForwards|7778,1
> 92.168.1.50|status|enabled

This implies that /sbin/e-smith/db does exist, and has done it's
job.  However, the masq code that handles the IPChains didn't exist before 4.1.2.
 
> Hin hin !=)

?

Cheers,
Paul