From owner-freebsd-net Tue Apr 4 22:45:41 2000 Delivered-To: freebsd-net@freebsd.org Received: from picalon.gun.de (picalon.gun.de [192.109.159.1]) by hub.freebsd.org (Postfix) with ESMTP id CA73337BB51 for ; Tue, 4 Apr 2000 22:45:32 -0700 (PDT) (envelope-from andreas@klemm.gtn.com) Received: (from uucp@localhost) by picalon.gun.de (8.9.3/8.9.3) id HAA13071 for freebsd-net@freebsd.org; Wed, 5 Apr 2000 07:45:16 +0200 (MET DST) >Received: (from andreas@localhost) by klemm.gtn.com (8.9.3/8.9.3) id WAA26397 for freebsd-net@freebsd.org; Tue, 4 Apr 2000 22:17:29 +0200 (CEST) (envelope-from andreas) Date: Tue, 4 Apr 2000 22:17:29 +0200 From: Andreas Klemm To: freebsd-net@freebsd.org Subject: natd (two times) && real audio is that possible ? Message-ID: <20000404221729.A25797@titan.klemm.gtn.com> Mime-Version: 1.0 X-Mailer: Mutt 1.0.1i X-Operating-System: FreeBSD 5.0-CURRENT SMP X-Disclaimer: A free society is one where it is safe to be unpopular Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi ! Need some help concerning natd on FreeBSD in conjunction with real audio. My wife wants to see/hear real audio. But it doesn't work. |------- 172.16.1.0/24 ---------------| her net | | ed0 - .1 | My FreeBSD machine (gateway, Firewall type open, divert sockets) | natd -interface xl0 -log -s -m | | xl0 - .1 | |------- 172.16.2.0/24 ---------------| my net | | e0 - .2 | cisco router (runs nat as well) | | ISDN (fix ip address) | Is it not possible to use nat 2 times ? Is it a problem with configuration ? When I disable routing on the FreeBSD gate with sysctl -w net.inet.ip.forwarding=1 my wife doesn't get any packets through. I would have expected, that at least natd takes care of forwarding packets ... These are the relevant parts of rc.conf: # network interface card configuration hostname="titan.klemm.gtn.com" network_interfaces="auto" # List of network interfaces (or "auto"). ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. ifconfig_xl0="inet 172.16.2.1 netmask 255.255.255.0" ifconfig_ed0="inet 172.16.1.1 netmask 255.255.255.0" # OSPF Routing defaultrouter="NO" router_enable="YES" router="/usr/local/sbin/zebractl" router_flags="start" # TCP/IP gateway_enable="YES" tcp_extensions="NO" # Set to YES to turn on RFC1323 extensions. # Security firewall_enable="YES" firewall_type="open" # NAT (Network Address Translation) natd_enable="YES" # Enable natd (if firewall_enable == YES). natd_program="/sbin/natd" # path to natd, if you want a different one. natd_flags="-log -s -m" # Additional flags for natd. natd_interface="xl0" # Public interface or IPaddress to use. # # Kernel Config File: TITAN # [...] options MROUTING # Multicast routing options IPFIREWALL #firewall options IPFIREWALL_VERBOSE #print information about dropped packets options IPFIREWALL_FORWARD #enable xparent proxy support options IPFIREWALL_VERBOSE_LIMIT=100 #limit verbosity options IPDIVERT #divert sockets options IPSTEALTH #support for stealth forwarding options ICMP_BANDLIM options DUMMYNET Cisco interface Ethernet0 description home backbone ip address 172.16.2.2 255.255.255.0 ip nat inside ! interface Dialer1 description ISP ip nat outside ! ! I use route map, since I have to use natd for multiple destinations ! ip nat inside source route-map dpn-map interface Dialer1 overload ip nat inside source route-map company-map interface Dialer2 overload ! access-list 1 permit 172.16.1.0 access-list 1 permit 172.16.2.0 ! route-map dpn-map permit 10 match ip address 1 match interface Dialer1 ! -- Andreas Klemm http://people.FreeBSD.ORG/~andreas http://www.freebsd.org/~fsmp/SMP/SMP.html powered by Symmetric MultiProcessor FreeBSD New APSFILTER 520 and songs from our band - http://people.freebsd.org/~andreas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message