Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jul 2001 11:42:53 -0300
From:      "Pablo Bendersky" <pbendersky@mark-inc.com>
To:        <freebsd-questions@freebsd.org>
Subject:   PPPoE, nat, firewall
Message-ID:  <001301c11061$180f42d0$3700a8c0@mark>

next in thread | raw e-mail | index | archive | help
Hello!
I'm trying to configure a ADSL on a FreeBSD 4.2 box to share the
internet connection on my lan.
I wanted also to have a firewall.

I have a cisco 677 connected to the dsl line, and on the other side
connected to the xl1 device on my freebsd box.
On xl0 of the bsd box I have a local IP address, 192.168.0.1, which I
have configured as the default gateway on the other computers of the
lan.

As the Cisco has an IP address of 10.0.0.1, I put 10.0.0.2 on xl1 (Don't
know if that's correct, though)

The configuration is as follows:

< from rc.conf >
ifconfig_xl0="inet 192.168.0.1  netmask 255.255.255.0"
ifconfig_xl1="inet 10.0.0.2 netmask 255.255.255.0 broadcast 10.0.0.255"

ppp_enable="YES"
ppp_mode="dedicated"
ppp_nat="YES"
ppp_profile="adsl"

<from ppp.conf>
adsl:
  set device PPPoE:xl1
  set mru 1492
  set mru 1492
  set authname USER
  set authkey PASSWD
  set log Phase tun command
  set dial
  set login
  set ifaddr 10.0.0.1/0 10.0.0.2/0
  add default HISADDR

Everything works ok, except that I cannot use ftp (from the windows
computers and from the freebsd box also) When doing binary ftp it starts
upload things, and then, when at 9% (for example) it gets stalled. I
don't know why it's happenning, and what's the problem with the
configuration.

Mail and web works ok.

Is my setup ok?

Thanks a lot in advance.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001301c11061$180f42d0$3700a8c0>