PPPoE server porblem - forward internet
Zh Zhechev
zhechev at abv.bg
Mon Mar 29 02:23:10 PST 2004
hi all
I have a big problem with PPPoE server installed on freebsd 5.2.1. Authentication from incoming user conection (iwan_petkow_draganow for example) is successful, but he can't receive data from outside
networks (internet). Is this a routing problem? and how i can fix this?
in kernel i have:
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=10
options IPDIVERT
options DUMMYNET
options NETGRAPH
options NETGRAPH_ETHER
options NETGRAPH_PPPOE
options NETGRAPH_SOCKET
That's my files:
/etc/rc.conf
..............................
gateway_enable="YES"
hostname="example.com"
defaultrouter="192.168.111.1"
ifconfig_rl0="inet 192.168.111.6 netmask 255.255.255.224"
ifconfig_rl1="inet 10.0.0.1 netmask 255.255.255.0 mtu 1472"
#ifconfig_rl1="inet 192.168.0.1 netmask 255.255.255.0 mtu 1472"
kern_securelevel="0"
kern_securelevel_enable="NO"
linux_enable="YES"
#ibcs2_enable="NO"
#accounting_enable="YES"
#usbd_enable="YES"
firewall_enable="YES"
firewall_type="open"
firewall_quiet="NO"
natd_enable="NO"
natd_interface="rl0"
#natd_flags="-redirect_address 10.0.0.10 192.168.111.2"
## PPPoEd-<<<THE SCRIPT IS NOT WORKING AND I START PPPoE SERVER FROM /usr/local/etc/rc.d/pppoed.sh
pppoed_enable="YES"
pppoed_flags="-d -P /var/run/pppoed.pid -a serverPPPoE -l pppoe-in"
pppoed_interface="rl1"
#pppoed_provider="pppoe-in"
sendmail_enable="NO"
named_enable="YES"
sshd_enable="YES"
router_enable="YES"
................................
/usr/local/etc/rc.d/pppoed.sh
................................
#! /bin/sh
/usr/libexec/pppoed -d -a serverPPPoE -l pppoe-in rl1
................................
/etc/ppp/ppp.conf
................................
serverPPPoE:
set device PPPoE:rl1:pppoe-in
enable lqr
#set cd 5
#set dial #set dial
#set login
#ser redial 0 0
pppoe-in:
#set device PPPoE:rl1:pppoe-in # za proba t.e. bez nego moje
#set log All
set log Chat command Connect Warning Error Alert HDLC CCP IPCP Phase TUN
LQM Timer
#set cd 5
set timeout 0
set mtu 1472
set mru 1472
disable deflate
enable deflate24
enable vjcomp #za kompresiq
allow mode direct
enable lqr proxy
enable proxyall
deny pap
disable pap
enable mschap chap chap81
#set mppe
set ifaddr 10.0.0.1 10.0.0.10-10.0.0.100
accept dns
disable utmp #disable utmp i wtmp entr
set crtscts off
disable ipv6cp #we don't use ipv6, don't
add default HISADDR # Add a (sticky) default route WNIMAWAJ TUKA
#add default 192.168.111.1 #test path
#add! 10.0.0.0/24 192.168.111.1 #test path
#add! 10.0.0.0/24 192.168.0.1 #test path
##NAT
nat enable yes
# enable iface-alias
nat addr 10.0.0.12 192.168.111.2 #redirekt na local ip kym real
# nat log yes
nat same_ports yes
nat use_sockets yes
# nat unregistered_only yes
# enable dns
................................
/etc/ppp/ppp.secret
................................
iwan_petkow_draganow mara 10.0.0.12
................................
Some log Files
/var/log/ppp.log
.................................
Mar 28 11:44:04 shtajga ppp[521]: Phase: Using interface: tun0
Mar 28 11:44:04 shtajga ppp[521]: Phase: deflink: Created in closed state
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: set timeout 0
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: set mtu 1472
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: set mru 1472
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: disable deflate
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: enable deflate24
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: enable vjcomp
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: enable lqr proxy
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: enable proxyall
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: deny pap
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: disable pap
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: enable mschap chap cha
p81
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: set ifaddr 10.0.0.1 10
.0.0.10-10.0.0.100
Mar 28 11:44:04 shtajga ppp[521]: tun0: IPCP: Selected IP address 10.0.0.38
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: accept dns
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: disable utmp
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: set crtscts off
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: disable ipv6cp
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: add default HISADDR
Mar 28 11:44:04 shtajga ppp[521]: tun0: Warning: Add route failed: 0.0.0.0/0 alre
ady exists
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: nat enable yes
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: nat addr 10.0.0.12 192
.168.111.2
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: nat same_ports yes
Mar 28 11:44:04 shtajga ppp[521]: tun0: Command: pppoe-in: nat use_sockets yes
Mar 28 11:44:04 shtajga ppp[521]: tun0: Phase: PPP Started (direct mode).
Mar 28 11:44:04 shtajga ppp[521]: tun0: Phase: bundle: Establish
Mar 28 11:44:04 shtajga ppp[521]: tun0: Phase: deflink: closed -> opening
Mar 28 11:44:04 shtajga ppp[521]: tun0: Phase: deflink: Link is a netgraph node
Mar 28 11:44:04 shtajga ppp[521]: tun0: Timer: timer_Start: Inserting physical th
roughput timer[0x80c2068]
Mar 28 11:44:04 shtajga ppp[521]: tun0: Phase: deflink: Connected!
Mar 28 11:44:04 shtajga ppp[521]: tun0: Phase: deflink: opening -> carrier
Mar 28 11:44:04 shtajga ppp[521]: tun0: Phase: deflink: carrier -> lcp
Mar 28 11:44:04 shtajga ppp[521]: tun0: Timer: timer_Start: Inserting LCP openmod
e timer[0x80c215c] before physical throughput timer[0x80c2068], delta = 10
Mar 28 11:44:04 shtajga ppp[521]: tun0: Timer: deflink: fdset(r) 0
Mar 28 11:44:04 shtajga ppp[521]: tun0: Timer: deflink: fdset(e) 0
Mar 28 11:44:04 shtajga ppp[521]: tun0: Timer: Select returns 1
Mar 28 11:44:04 shtajga ppp[521]: tun0: Timer: timer_Start: Inserting LCP restart
.................................
.
.
Mar 28 11:44:04 shtajga ppp[521]: tun0: Phase: Chap Input: RESPONSE (16
bytes from iwan_petkow_draganow)
Mar 28 11:44:04 shtajga ppp[521]: tun0: Phase: Chap Output: SUCCESS
.
.
.
the user -> iwan_petkow_draganow use windows XP and the interface configuration is:
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8139/810X Family PCI Fast
Ethernet NIC
Physical Address. . . . . . . . . : 00-48-54-67-1A-E5
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IP Address. . . : 169.254.188.224
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
PPP adapter Broadband Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface
Physical Address. . . . . . . . . : 00-53-45-00-00-00
Dhcp Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 10.0.0.12
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 10.0.0.12
NetBIOS over Tcpip. . . . . . . . : Disabled
Zhecho Zhechew
Earth,Europe,Bulgaria,Sofia
-----------------------------------------------------------------
http://www.teenclean.net/ - Време е да хвърлиш в паника пъпките! Контраатакувай!
More information about the freebsd-questions
mailing list