Subject: NetBSD 1.6 as a gateway (duplicated)
To: users netbsd <netbsd-users@netbsd.org>
From: software <software@polin.it>
List: netbsd-users
Date: 01/09/2003 11:24:20
This is a multi-part message in MIME format.
------=_NextPart_000_0052_01C2B7D1.A73288F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
*** First of all sorry if this a duplicated message, but I was not sure =
the former was sent. Apologises for that! ****
Hi,
this is my first post in NetBSD mailing list.
At home I have this small network:
ADSL
|
|
|
EP1
NetBSD1.6
EP0
|
|
|
+ HUB
|
|
----- Win Laptop
Well I used, for the past month, FreeBSD as a gateway.
Yesterday I wanted to install NetBSD so I downloaded the 1.6 iso, burned =
a CD and installed it: all is ok.
What I wanted to do is to setup my NetBSD machine as a gateway for a =
multi-home network:
These are the files I setuped:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
*** /etc/sysctl.conf ***
net.inet.ip.forwarding=3D1
*** /etc/ifconfig.ep1 ***
inet 10.0.0.1 netmask 0xffffff00
*** /etc/ifconfig.ep0 ***
inet 192.168.0.1 netmask 0xffffff00
*** /etc/ifconfig.pppoe0 ***
create
# Mark the physical interface used by this PPPoE interface up
! /sbin/ifconfig ep1 up
# Let $int use ep1 as its Ethernet interface
! /sbin/pppoectl -e ep1 $int
# Configure authentication
! /sbin/pppoectl $int myauthproto=3Dpap 'myauthname=3Dxxxxx' =
'myauthsecret=3Dyyyyy' hisauthproto=3Dnone
# Configure the PPPoE interface itself. These addresses are magic
# meaning we don't care about either address and let the remote
# ppp choose them.
0.0.0.0 0.0.0.1 up=20
*** /etc/ppp/ip-down ***
#! /bin/sh
/sbin/route delete default $5
/etc/rc.d/ipnat forcestop
*** /etc/ppp/ip-up ***
#! /bin/sh
/sbin/route add default $5
/etc/rc.d/ipnat forcestart
*** /etc/ipf.conf ***
pass in from any to any
pass out from any to any
*** /etc/ipnat.conf ***
map pppoe0 192.168.0.0/24 -> 0/32 proxy port ftp ftp/tcp
map pppoe0 192.168.0.0/24 -> 0/32 portmap tcp/udp 40000:60000
map pppoe0 192.168.0.0/24 -> 0/32
*** /etc/myname ***
murat
*** /etc/rc.conf ***
# default settings here
# my additions here
ipfilter=3DYES
ipnat=3DYES
ifwatchd=3DYES
inetd=3DNO
*** /etc/resolv.conf
nameserver a.b.c.d
nameserver e.f.g.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
These are the files I touched following the documentation.
ftp ftp://ftp/netbsd.org/
or If I launch
nslookup www.somesite.com
it works
>From the laptop I have some problems,
because I can use only ftp.
So FTP works, while I can't navigate and I can't use the email.
In particular when I launch the email program (outlook express) it tells =
me
Downloading Message 1 of 30
and it locks there (after some seconds he says me "error" )
>From the dos-prompt I can launch
nslookup www.somesite.com
I'm desperate because yesterday night I spent 4 hours,
and I have no idea what to do.
Have I done something wrong ?
At home I can't use the internet connection because my gateway doesn't =
work,
now I'm at work.
Please help,
thank you!
Mr. Andrea R., Italy
------=_NextPart_000_0052_01C2B7D1.A73288F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>*** First of all sorry if this a =
duplicated=20
message, but I was not sure the former was sent. Apologises for =
that!=20
****</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>this is my first post in NetBSD mailing =
list.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>At home I have this small =
network:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>ADSL</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>|</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>|</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>|</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>EP1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>NetBSD1.6</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>EP0</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>|</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>|</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>|</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>+ HUB</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>|</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>|</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>----- Win Laptop</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Well I used, for the past month, =
FreeBSD as a=20
gateway.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Yesterday I wanted to install NetBSD so =
I=20
downloaded the 1.6 iso, burned a CD and installed it: all is =
ok.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>What I wanted to do is to setup my =
NetBSD machine=20
as a gateway for a multi-home network:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>These are the files I =
setuped:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial=20
size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*** /etc/sysctl.conf ***</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>net.inet.ip.forwarding=3D1<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*** =
/etc/ifconfig.ep1 ***</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>inet 10.0.0.1 netmask =
0xffffff00</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>*** =20
/etc/ifconfig.ep0 ***</FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>inet 192.168.0.1 netmask =
0xffffff00</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>*** /etc/ifconfig.pppoe0 =
***</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>create<BR># Mark the physical interface =
used by=20
this PPPoE interface up<BR>! /sbin/ifconfig ep1 up<BR># Let $int use ep1 =
as its=20
Ethernet interface<BR>! /sbin/pppoectl -e ep1 $int<BR># Configure=20
authentication<BR>! /sbin/pppoectl $int myauthproto=3Dpap =
'myauthname=3Dxxxxx'=20
'myauthsecret=3Dyyyyy' hisauthproto=3Dnone<BR># Configure the PPPoE =
interface=20
itself. These addresses are magic<BR># meaning we don't care about =
either=20
address and let the remote<BR># ppp choose them.<BR>0.0.0.0 0.0.0.1 up=20
<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*** /etc/ppp/ip-down ***</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>#! /bin/sh<BR>/sbin/route delete =
default=20
$5<BR>/etc/rc.d/ipnat forcestop<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*** /etc/ppp/ip-up ***</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>#! /bin/sh<BR>/sbin/route add default=20
$5<BR>/etc/rc.d/ipnat forcestart<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*** /etc/ipf.conf ***</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>pass in from any to any<BR>pass out =
from any to=20
any<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*** /etc/ipnat.conf ***</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>map pppoe0 192.168.0.0/24 -> 0/32 =
proxy port ftp=20
ftp/tcp<BR>map pppoe0 192.168.0.0/24 -> 0/32 portmap tcp/udp=20
40000:60000<BR>map pppoe0 192.168.0.0/24 -> 0/32<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*** /etc/myname ***</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>murat<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*** /etc/rc.conf ***</FONT></DIV>
<DIV><FONT face=3DArial size=3D2># default settings here</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2># my additions here</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>ipfilter=3DYES<BR>ipnat=3DYES<BR>ifwatchd=3DYES<BR>inetd=3DNO<BR=
></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*** /etc/resolv.conf</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>nameserver a.b.c.d<BR>nameserver=20
e.f.g.h<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>These are the files I touched following =
the=20
documentation.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>From the gateway I can use ftp =
as</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>ftp <A=20
href=3D"ftp://ftp/netbsd.org/">ftp://ftp/netbsd.org/</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>or If I launch</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>nslookup <A=20
href=3D"http://www.somesite.com">www.somesite.com</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>it works</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>From the laptop I have some =
problems,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>because I can use only =
ftp.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>So FTP works, while I can't navigate =
and I can't=20
use the email.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>In particular when I launch the email =
program=20
(outlook express) it tells me</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Downloading Message 1 of =
30</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and it locks there (after some seconds =
he says me=20
"error" )</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>From the dos-prompt I can =
launch</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>nslookup <A=20
href=3D"http://www.somesite.com">www.somesite.com</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm desperate because yesterday night I =
spent 4=20
hours,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and I have no idea what to =
do.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Have I done something wrong =
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>At home I can't use the internet =
connection because=20
my gateway doesn't work,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>now I'm at work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Please help,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>thank you!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Mr. Andrea R., Italy</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0052_01C2B7D1.A73288F0--