[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-misc
Subject: Re: help with nat
From: "Bruce Bauer" <bruce () specialdevices ! com>
Date: 2001-09-30 18:01:55
[Download RAW message or body]
Why are both network cards on the same subnet?
NAT would accomplish nothing here, even if it did work.
Either you have made a dumb error and are now smacking yourself in the head or you need to
educate your self on TCP/IP networks.
> I've read the networking section of the FAQ and there's something I'm just not
> getting.
>
> *********
> contents of hostname.ne1 which is the internal network card:
>
> inet 192.168.0.2 255.255.255.0 NONE
>
> *********
> contents of hostname.ne3 which is the external network card:
>
> inet 192.168.0.1 255.255.255.0 NONE
>
> **********
> contents of ipnat.rules:
>
> # $OpenBSD: ipnat.rules,v 1.2 1999/05/08 16:33:10 jason Exp $
> #
> # See /usr/share/ipf/nat.1 for examples.
> # edit the ipnat= line in /etc/rc.conf to enable Network Address Translation
>
>
> map ne3 192.168.0.1/24 -> ne3/32 portmap tcp/udp 10000:60000
> map ne3 192.168.0.1/24 -> ne3/32
> ************
> contents of ipnat -l
>
> List of active MAP/Redirect filters:
> map ne3 192.168.0.0/24 -> 192.168.0.1/32 portmap tcp/udp 10000:60000
> map ne3 192.168.0.0/24 -> 192.168.0.1/32
>
> List of active sessions:
> **************
> contents of ifconfig -a:
>
> lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 32972
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
> inet6 ::1 prefixlen 128
> inet 127.0.0.1 netmask 0xff000000
> lo1: flags=8008<LOOPBACK,MULTICAST> mtu 32972
> ne3: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu
1500
> media: Ethernet autoselect (10baseT)
> inet6 fe80::5054:ff:feed:744d%ne3 prefixlen 64 scopeid 0x1
> inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
> ne1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu
1500
> media: Ethernet manual
> inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
> inet6 fe80::280:adff:fe77:be38%ne1 prefixlen 64 scopeid 0x2
> sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
> sl1: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 296
> ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> tun0: flags=11<UP,POINTOPOINT> mtu 1488
> inet 64.230.103.76 --> 64.230.103.1 netmask 0xff000000
> tun1: flags=10<POINTOPOINT> mtu 3000
> enc0: flags=0<> mtu 1536
> bridge0: flags=0<> mtu 1500
> bridge1: flags=0<> mtu 1500
> gre0: flags=8010<POINTOPOINT,MULTICAST> mtu 1450
> gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
> *************
> contents of route show:
> Routing tables
>
> Internet:
> Destination Gateway Flags
> default HSE-Hamilton-ppp24 UG
> HSE-Hamilton-ppp 64.230.103.76 UH
> 127.0.0.0 localhost UG
> localhost localhost UH
> 192.168.0.0 link#2 U
> 192.168.0.3 0:0:e8:5a:4e:36 UH
> BASE-ADDRESS.MCA localhost U
>
> Internet6:
> Destination Gateway Flags
> default localhost UG
> default localhost UG
> localhost localhost UH
> ::127.0.0.0 localhost UG
> ::224.0.0.0 localhost UG
> ::255.0.0.0 localhost UG
> ::ffff:0.0.0.0 localhost UG
> 2002:: localhost UG
> 2002:7f00:: localhost UG
> 2002:e000:: localhost UG
> 2002:ff00:: localhost UG
> fe80:: localhost UG
> fe80::%ne3 link#1 U
> fe80::%ne1 link#2 U
> fe80::%lo0 fe80::1%lo0 U
> fec0:: localhost UG
> ff01:: localhost U
> ff02::%ne3 link#1 U
> ff02::%ne1 link#2 U
> ff02::%lo0 fe80::1%lo0 U
> **************
> I can ping 192.168.0.2 with box 192.168.0.3 but I can't ping 192.168.0.1
>
> Thanks
>
> Sig
>
-*-*-*-*-*-*-*-*-*-*-*-*-*-
All opinions are my own.
All advice is worth what you pay for it.
A little experience often upsets a lot of theory.
-*-*-*-*-*-*-*-*-*-*-*-*-*-
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic