Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jan 1999 18:56:47 -0500 (EST)
From:      Mikhail Teterin <mi@aldan.algebra.com>
To:        questions@FreeBSD.ORG, net@FreeBSD.ORG
Subject:   natd, 2 interfaces
Message-ID:  <199901052356.SAA94364@rtfm.ziplink.net>

next in thread | raw e-mail | index | archive | help
Please, please!

Somebody, who understands the difference between "desired" and
"requested" in the natd(8) man page provide a working example of
ipfw rules and natd redirections for the following scheme:

	===_==== Internet === ISP-news-server ===
	   |
	 public if            -- internal0 (10.10.0.1)
	   |                  |
	dual-interface        ......
	machine               |
	   |                  -- internalN (10.10.0.N)
	 private if ----------|
	 (10.10.0.N+1)

I want to use the ISP's news server from my internal machines.
I do NOT want to use nntpproxy or socks5. It appears, I can use
ipfw/natd on the "dual interface machine" (say, aldan) to forward
connections to its port 119, which come through private if (say,
ep0) to the new-server. I tried the following:

	00050 divert 6668 tcp from 10.10.0.1 to any
	00200 deny ip from any to 127.0.0.0/8
	65535 allow ip from any to any

and the following natd.conf :

	same_ports yes
	log yes
	redirect_port tcp news.ISP.net:nntp nntp
	interface ep0
	deny_incoming no

with some variations. Nothing helps :( I'd appreciate any suggestions.
Yours,

	-mi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901052356.SAA94364>