From owner-freebsd-net Sun Mar 17 2:42:25 2002 Delivered-To: freebsd-net@freebsd.org Received: from ns.mmk.ru (ns1.mmk.ru [195.54.3.19]) by hub.freebsd.org (Postfix) with ESMTP id B614837B405 for ; Sun, 17 Mar 2002 02:42:09 -0800 (PST) Received: from antivirus.mmk.ru (sinful [161.8.100.3]) by ns.mmk.ru (8.11.6/8.11.6) with ESMTP id g2HAfxs78769; Sun, 17 Mar 2002 15:41:59 +0500 (YEKT) Received: from dimasic (localhost [127.0.0.1]) by antivirus.mmk.ru (8.11.6/8.11.6) with SMTP id g2HAeGo29321; Sun, 17 Mar 2002 15:40:18 +0500 (ESK) Message-ID: <001b01c1cda0$264fccf0$02020101@dimasic> From: "Dmitry A. Bondareff" To: "Xawiers" , References: <001501c1cb5b$48dba060$02000b0a@ksaveras> <01fb01c1ccd1$19c0ee30$02020101@dimasic> <001101c1ccf6$215abb60$02000b0a@ksaveras> Subject: Re: Trouble to connect FreeBSD 4.5 to internet Date: Sun, 17 Mar 2002 15:40:22 +0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0018_01C1CDCA.0CF4EB30" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_0018_01C1CDCA.0CF4EB30 Content-Type: text/plain; charset="windows-1257" Content-Transfer-Encoding: quoted-printable I thing so: /etc/rc.conf: # This is for external interface ifconfig_ed0=3D"inet 192.168.100.253 netmask 255.255.255.0" # This is for internal interface ifconfig_xl0=3D"inet internalIP netmask 255.255.255.0" # Add default to ISP defaultrouter=3D"192.168.100.254" # Enable your system as Router gateway_enable=3D"YES" # Enable NAT ipnat_enable=3D"YES" ipnat_rules=3D"/etc/ipnat.conf" Then add the rule for NAT /etc/ipnat.conf: map ed0 internalnet/24 -> 195.14.167.39/32 -------------------------------------------------------------------------= ------------- Warning:=20 ISP must add the next in his routing table # route add -host 195.14.167.39 192.168.100.253=20 Or try on your side=20 arp -s 195.14.167.39 MAC pub where MAC is MACaddress of your external ethernet card. -------------------------------------------------------------------------= ------------- Regards, aka Dimasic. ----- Original Message -----=20 From: Xawiers=20 To: Dmitry A. Bondareff ; freebsd-net@FreeBSD.ORG=20 Sent: Saturday, March 16, 2002 7:23 PM Subject: Re: Trouble to connect FreeBSD 4.5 to internet Hello again so how shoult I config that with natd ? Could someone write any examples? =20 -------------------- Xawiers =20 ----- Original Message -----=20 From: Dmitry A. Bondareff=20 To: freebsd-net@FreeBSD.ORG=20 Sent: Saturday, March 16, 2002 10:58 AM Subject: Re: Trouble to connect FreeBSD 4.5 to internet Hmm. It's too strange configuration.=20 The ISP must to do translation to 195.14.167.39 on him box. May be he think that you must do it. Try to using NAT on your box. And netmask wrong too ! Regards, aka Dimasic. ----- Original Message -----=20 From: Xawiers=20 To: freebsd-net@FreeBSD.ORG=20 Sent: Thursday, March 14, 2002 6:22 PM Subject: Trouble to connect FreeBSD 4.5 to internet Hello, I have trouble to connect FreeBSD to internet. Our ISP gave me these datas about network Gateway: 192.168.100.254 My external IP: 195.14.167.39 Netmask: 255.255.255.254 what i did: First I added alias, because I cant see my gateway - no ping = response (not in the same subnet) ifconfig ed0 inet 192.168.100.253 netmask 255.255.255.0 alias And I add default gateway: route add default 192.168.100.254 now my GW responses for ping, but internet - no=20 How I coud resolve this problem. P.S. sorry for my english Best regards Xawiers ------=_NextPart_000_0018_01C1CDCA.0CF4EB30 Content-Type: text/html; charset="windows-1257" Content-Transfer-Encoding: quoted-printable
I thing so:
 
/etc/rc.conf:
# This is for external=20 interface
ifconfig_ed0=3D"inet = 192.168.100.253 netmask=20 255.255.255.0"
# This is for internal=20 interface
ifconfig_xl0=3D"inet internalIP netmask=20 255.255.255.0"
# Add default to ISP
defaultrouter=3D"192.168.100.254"
# Enable your system as = Router
gateway_enable=3D"YES"
# Enable NAT
ipnat_enable=3D"YES"
ipnat_rules=3D"/etc/ipnat.conf"
 
Then add the rule for = NAT
/etc/ipnat.conf:
map ed0=20 internalnet/24 ->=20 195.14.167.39/32
 
----------------------------------------------------------------= ----------------------
Warning: =
ISP must add the next in = his routing=20 table
# route add -host = 195.14.167.39=20 192.168.100.253
 
Or try on your side=20
arp -s = 195.14.167.39 MAC=20 pub
where MAC is = MACaddress of your=20 external ethernet card.
----------------------------------------------------------------= ----------------------
 
Regards,
aka Dimasic.
----- Original Message -----
From:=20 Xawiers =
To: Dmitry A. Bondareff ; freebsd-net@FreeBSD.ORG
Sent: Saturday, March 16, 2002 = 7:23=20 PM
Subject: Re: Trouble to connect = FreeBSD=20 4.5 to internet

Hello again
so how shoult I config that with natd = ?
Could someone write any = examples?
 
--------------------
Xawiers
 
----- Original Message -----
From:=20 Dmitry A. = Bondareff=20
To: freebsd-net@FreeBSD.ORG
Sent: Saturday, March 16, = 2002 10:58=20 AM
Subject: Re: Trouble to = connect FreeBSD=20 4.5 to internet

Hmm.
It's too strange = configuration.=20
The ISP must to do = translation to=20 195.14.167.39 on him box.
May be he think that you must = do=20 it.
Try to using NAT on your=20 box.
 
And netmask wrong too !
 
Regards,
aka Dimasic.
 
 
----- Original Message -----
From:=20 Xawiers
To: freebsd-net@FreeBSD.ORG
Sent: Thursday, March 14, = 2002 6:22=20 PM
Subject: Trouble to connect = FreeBSD=20 4.5 to internet

Hello,
I have trouble to connect FreeBSD to internet.
Our ISP gave me these datas about network
Gateway: 192.168.100.254
My external IP: 195.14.167.39
Netmask: 255.255.255.254
 
what i did:
First I added alias, because I cant see my gateway - no ping = response=20 (not in the same subnet)
 
ifconfig ed0 inet 192.168.100.253 netmask 255.255.255.0 = alias
 
And I add default gateway:
 
route add default 192.168.100.254
 
now my GW responses for ping, but internet - no
How I coud resolve this problem.
 
P.S. sorry for my english
Best regards
=
Xawiers
------=_NextPart_000_0018_01C1CDCA.0CF4EB30-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message