From owner-freebsd-net Tue Dec 7 14:27:17 1999 Delivered-To: freebsd-net@freebsd.org Received: from smtp.tsi-net.com (smtp.tsi-net.com [207.202.145.135]) by hub.freebsd.org (Postfix) with ESMTP id 6F1AB14E4A for ; Tue, 7 Dec 1999 14:27:14 -0800 (PST) (envelope-from james3838@tsi-net.com) Received: from mins05 ([131.107.88.65]) by smtp.tsi-net.com (8.9.1/8.9.1) with SMTP id OAA05127 for ; Tue, 7 Dec 1999 14:27:12 -0800 (PST) Message-ID: <01cf01bf4101$fa387540$41586b83@mins05> From: "James Webster" To: Subject: Re: IP Nat problems Date: Tue, 7 Dec 1999 14:25:00 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.4200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.4200 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Did some more digging and found a problem, but don't know the solution - /sbin/ipfw add divert natd all from any to any via ex0 0000 divert 868 ip from any to any via ex0 ip_fw_ctl: invalid command ipfw: setsockopt(IP_FW_ADD): Invalid argument ----- Original Message ----- From: "James Webster" To: Sent: Tuesday, December 07, 1999 1:28 PM Subject: IP Nat problems > I just realized I was asking this question on the wrong mailing list. I'm > having problems getting NAT working for a slowlink test I'm setting up. I'm > more familiar with NAT on netBSD, but for some reasone the driver for my nic > wouldn't work in netBSD. > > I currently have firewall, gateway and nat enabled. This is my scenario: > > 172.30.224.9 (ex0) is the address that machines will connect to on port 80. > All of those connections need to be redirected to 10.0.0.2 port 80 through > 10.0.0.1 (ppp0). > > IPnat would be: rdr ex0 172.30.224.9/32 port 80 -> 10.0.0.2 port 80 > natd I have: redirect_port tcp 10.0.0.2:80 172.30.224.9:80 > I also added: redirect_port tcp 10.0.0.2:23 172.30.224.9:23 > and tried to telnet to the box through 172.30.224.9. The local telnetd > server answered indicating that Nat is not redirecting the ports. I may be > missing some configuration settings though. Any help troubleshooting would > be appreciated. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message