Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2002 15:40:22 +0500
From:      "Dmitry A. Bondareff" <freebsd@mmk.ru>
To:        "Xawiers" <xawiers@mail.lt>, <freebsd-net@FreeBSD.ORG>
Subject:   Re: Trouble to connect FreeBSD 4.5 to internet
Message-ID:  <001b01c1cda0$264fccf0$02020101@dimasic>
References:  <001501c1cb5b$48dba060$02000b0a@ksaveras> <01fb01c1ccd1$19c0ee30$02020101@dimasic> <001101c1ccf6$215abb60$02000b0a@ksaveras>

next in thread | previous in thread | raw e-mail | index | archive | help
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Dwindows-1257" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Arial Cyr" size=3D2>I thing so:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Arial Cyr" size=3D2>/etc/rc.conf:</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2># This is for <STRONG>external=20
</STRONG>interface</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>ifconfig_ed0=3D"inet =
192.168.100.253 netmask=20
255.255.255.0"</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2># This is for <STRONG>internal=20
</STRONG>interface</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" =
size=3D2>ifconfig_xl0=3D"inet&nbsp;internalIP netmask=20
255.255.255.0"</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2># Add default to ISP</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" =
size=3D2>defaultrouter=3D"192.168.100.254"</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2># Enable your system as =
Router</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" =
size=3D2>gateway_enable=3D"YES"</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2># Enable NAT</FONT></DIV>
<DIV><FONT face=3D"Arial Cyr"=20
size=3D2>ipnat_enable=3D"YES"<BR>ipnat_rules=3D"/etc/ipnat.conf"</FONT></=
DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>Then add the rule for =
NAT</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>/etc/ipnat.conf:</FONT></DIV>
<DIV><FONT face=3D"Arial Cyr" size=3D2>map ed0=20
<STRONG>internalnet</STRONG>/24<STRONG> </STRONG>-&gt;=20
195.14.167.39/32</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Arial Cyr"=20
size=3D2>----------------------------------------------------------------=
----------------------</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2><STRONG>Warning: =
</STRONG></FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2><STRONG>ISP must add the next in =
his routing=20
table</STRONG></FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2><STRONG># route add -host =
195.14.167.39=20
192.168.100.253 </STRONG></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2><STRONG>Or try on your side=20
</STRONG></FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2><STRONG>arp -s =
195.14.167.39&nbsp;MAC=20
pub</STRONG></FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2><STRONG>where MAC&nbsp;is =
MACaddress of your=20
external ethernet card.</STRONG></FONT></DIV>
<DIV><FONT face=3D"Arial Cyr"=20
size=3D2>----------------------------------------------------------------=
----------------------</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>aka Dimasic.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:xawiers@mail.lt" title=3Dxawiers@mail.lt>Xawiers</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
href=3D"mailto:freebsd@mmk.ru"=20
  title=3Dfreebsd@mmk.ru>Dmitry A. Bondareff</A> ; <A=20
  href=3D"mailto:freebsd-net@FreeBSD.ORG"=20
  title=3Dfreebsd-net@FreeBSD.ORG>freebsd-net@FreeBSD.ORG</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Saturday, March 16, 2002 =
7:23=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: Trouble to connect =
FreeBSD=20
  4.5 to internet</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hello again</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>so how shoult I config that with natd =

  ?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>Could someone write any =
examples?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV>--------------------<BR>Xawiers</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV>----- Original Message ----- </DIV>
  <BLOCKQUOTE dir=3Dltr=20
  style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; =
MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
    <DIV=20
    style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
    <A href=3D"mailto:freebsd@mmk.ru" title=3Dfreebsd@mmk.ru>Dmitry A. =
Bondareff</A>=20
    </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
    href=3D"mailto:freebsd-net@FreeBSD.ORG"=20
    title=3Dfreebsd-net@FreeBSD.ORG>freebsd-net@FreeBSD.ORG</A> </DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Saturday, March 16, =
2002 10:58=20
    AM</DIV>
    <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: Trouble to =
connect FreeBSD=20
    4.5 to internet</DIV>
    <DIV><BR></DIV>
    <DIV><FONT face=3D"Arial Cyr" size=3D2>
    <DIV><FONT face=3D"Arial Cyr" size=3D2>Hmm.</FONT></DIV>
    <DIV><FONT face=3D"Arial CYR" size=3D2>It's too strange =
configuration.=20
    </FONT></DIV>
    <DIV><FONT face=3D"Arial CYR" size=3D2>The ISP must to do =
translation to=20
    195.14.167.39 on him box.</FONT></DIV>
    <DIV><FONT face=3D"Arial CYR" size=3D2>May be he think that you must =
do=20
    it.</FONT></DIV>
    <DIV><FONT face=3D"Arial CYR" size=3D2>Try to using NAT on your=20
box.</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=3D"Arial Cyr">And netmask wrong too !</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=3D"Arial CYR" size=3D2>Regards,</FONT></DIV>
    <DIV><FONT face=3D"Arial CYR" size=3D2>aka Dimasic.</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV>
    <DIV></FONT>----- Original Message ----- </DIV></DIV>
    <BLOCKQUOTE=20
    style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; =
MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
      <DIV=20
      style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
      <A href=3D"mailto:xawiers@mail.lt" =
title=3Dxawiers@mail.lt>Xawiers</A> </DIV>
      <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
      href=3D"mailto:freebsd-net@FreeBSD.ORG"=20
      title=3Dfreebsd-net@FreeBSD.ORG>freebsd-net@FreeBSD.ORG</A> </DIV>
      <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Thursday, March 14, =
2002 6:22=20
      PM</DIV>
      <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Trouble to connect =
FreeBSD=20
      4.5 to internet</DIV>
      <DIV><BR></DIV><FONT face=3DArial size=3D2>
      <DIV>Hello,</DIV>
      <DIV>I have trouble to connect FreeBSD to internet.</DIV>
      <DIV>Our ISP gave me these datas about network</DIV>
      <DIV>Gateway: 192.168.100.254</DIV>
      <DIV>My external IP: 195.14.167.39</DIV>
      <DIV>Netmask: 255.255.255.254</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>what i did:</DIV>
      <DIV>First I added alias, because I cant see my gateway - no ping =
response=20
      (not in the same subnet)</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>ifconfig ed0 inet 192.168.100.253 netmask 255.255.255.0 =
alias</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>And I add default gateway:</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>route add default 192.168.100.254</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>now my GW responses for ping, but internet - no </DIV>
      <DIV>How I coud resolve this problem.</DIV>
      <DIV>&nbsp;</DIV>
      <DIV>P.S. sorry for my english</DIV>
      <DIV>Best regards</DIV>
      =
<DIV>Xawiers</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></=
HTML>

------=_NextPart_000_0018_01C1CDCA.0CF4EB30--


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?001b01c1cda0$264fccf0$02020101>