Koozali.org: home of the SME Server

Portforwarding

Patrik Smith

Portforwarding
« on: January 20, 2000, 09:11:19 PM »
Where do i configure SMTP-Packets (or from other ports to)from the internet to go to a certain computer inside the masqued network?
ipmasqadm doesnt work cuz u cant compile anything with the server.
Would be very pleased if someone knows.

or can u tell me how to make gcc work within e-smith

Charlie Brady

RE: Portforwarding
« Reply #1 on: January 22, 2000, 04:06:04 AM »
Patrik Smith wrote:

> Where do i configure SMTP-Packets (or from other ports to)from
> the internet to go to a certain computer inside the masqued
> network?

Since you already have a process listening for SMTP packets you can't forward them elsewhere. But you can set up SMTP relaying if you want incoming mail to be forwarded to an internal host:

/var/qmail/control/locals: remove your domain name, just leave the e-smith system name.

/var/qmail/control/smtproutes - set up thus:

your.domain.name:[x.x.x.x]
:[y.y.y.y]

where x.x.x.x is the internal host, and y.y.y.y is your ISP's smtp server (the second line is optional - the e-smith server will deliver directly if you leave it out).

For permanent effect, you should change the templates for these files, rather than the files themselves. See http://www.e-smith.org/custom/ for details.

For other port forwardings, you will need to add additional ipchains rules to /etc/e-smith/tempaltes/etc/rc.d/init.d/masq. Read IP masquerade documentation for details.

> ipmasqadm doesnt work cuz u cant compile anything with
> the server. Would be very pleased if someone knows.
>
> or can u tell me how to make gcc work within e-smith

The e-smith server and gateway is not a general purpose computer. We recommend that you use a RedHat linux (or equivalent) system for development.

Charlie

Corey Drake

RE: Portforwarding
« Reply #2 on: January 22, 2000, 04:49:55 AM »
Patrik Smith wrote:

> ipmasqadm doesnt work cuz u cant compile anything with
> the server. Would be very pleased if someone knows.
>
> or can u tell me how to make gcc work within e-smith

There is an ipmasqadm RPM which works fine.
You can do a search for it on rpmfind and grab it.