NATD: Diverting ports to intern machine

NATD: Diverting ports to intern machine

Post by Tjardick van der Kraa » Fri, 12 Jun 1998 04:00:00



Hi,

I've got a FreeBSD machine running with NATD.

I would like to divert incomming ports on the BSD machine to another
machine on the
intern network. So that if someone would connect my BSD machine on port
80 it will
connect 192.168.0.10 on port 80. so the 0.10 will handle the Http
traffic.

Thanks in advance,

Tjardick

--


Volker & Bergkamp reclame-adviesbureau bv
Hoekstersingel 63
8901 BW  Leeuwarden
Tel. 058 - 234 75 75
Fax. 058 - 215 35 78

 
 
 

NATD: Diverting ports to intern machine

Post by Jeroen C. van Geldere » Fri, 12 Jun 1998 04:00:00


Redirect port 80 on this machine to 10.0.0.40:80 would be:
  redirect_port tcp 10.0.0.40:80 80

In your case:
  redirect_port tcp 192.168.0.10:80 80

Is in the man page...

Jeroen
--



|Hi,
|
|I've got a FreeBSD machine running with NATD.
|
|I would like to divert incomming ports on the BSD machine to another
|machine on the
|intern network. So that if someone would connect my BSD machine on port
|80 it will
|connect 192.168.0.10 on port 80. so the 0.10 will handle the Http
|traffic.
|
|Thanks in advance,
|
|Tjardick
|
|--
|

|
|Volker & Bergkamp reclame-adviesbureau bv
|Hoekstersingel 63
|8901 BW  Leeuwarden
|Tel. 058 - 234 75 75
|Fax. 058 - 215 35 78
|
|

 
 
 

NATD: Diverting ports to intern machine

Post by Julian Elische » Sun, 14 Jun 1998 04:00:00



Quote:> I would like to divert incomming ports on the BSD machine to another
> machine on the
> intern network. So that if someone would connect my BSD machine on port
> 80 it will
> connect 192.168.0.10 on port 80. so the 0.10 will handle the Http
> traffic.

A
you cab configure natd to do someting like this,
however thre is a set of patches (under the name mpath)
that alsocan be used for this sort of things

I have a 3.0 version of the m at http://www.freebsd.org/julian
under the banner "transparent proxy"

julian

 
 
 

NATD: Diverting ports to intern machine

Post by Dan Langil » Wed, 15 Jul 1998 04:00:00


On Thu, 11 Jun 1998 13:34:29 +0200, "Jeroen C. van Gelderen"


> Redirect port 80 on this machine to 10.0.0.40:80 would be:
>   redirect_port tcp 10.0.0.40:80 80

> In your case:
>   redirect_port tcp 192.168.0.10:80 80

I did just this the other night.  If it doesn't work, check your filtering
rules (if any).  I used ipfw and the filtering rules I had in place
prevented this redirect from getting through.
--
Dan Langille - DVL Software Limited
Wellington, New Zealand
to reply via email, try the contact at the website below
http://www.dvl-software.com/racingsystem.htm - for race timing solutions
 
 
 

1. Problem with NATD and diverting ports into internal net

Hello, All !

I have a problem with diverting ports into my network :

My net - 192.168.1.0
External address : 195.128.128.66
My int addrees on BSD - 192.168.1.2/24 - interface xl1
My ext address on BSD - 195.128.128.66/30 - interface - xl0

I want to divert port from 195.128.128.66 to 192.168.1.3.

I am starting natd :

natd -interface xl0

My ipfw rules

00100 divert 80 tcp from any to 192.168.1.3 in
00200 divert 53 udp from any to 192.168.1.3 in
00300 divert 8668 ip from any to any via xl0

Also i tried to launch natd with following config :

natd.cfg :

alias_address 195.128.128.66
log yes
redirect_port tcp 192.168.1.3:80 80
redirect_port tcp 192.168.1.3:25 25
redirect_port tcp 192.168.1.100:53 53
redirect_port udp 192.168.1.100:53 53
redirect_address 192.168.1.10 195.128.128.66
redirect_address 192.168.1.16 195.128.128.66
redirect_address 192.168.1.2 195.128.128.66

NATD cant redirect ports and addresses

Please assist me .....

2. Apache problem- admin must login for sites to be pingable?

3. natd and divert daemons

4. Video and Audio formats with Netscape on Linux

5. 3.1-RELEASE natd/divert/redirect_port problem

6. Real Memory SIZE

7. Diverting console to serial port

8. Question: Makefile optimization ..

9. natd firewall machine freezing

10. natd machine freezing

11. natd problem - natd[121]: failed to write packet back (Permission denied).

12. access machine in the network from the outside - natd ?

13. questions regarding redirect of ports with natd