The Fine Print: The following comments
are owned by whoever posted them.
( Add a Reply )
|
Re: HOWTO: Connect to the internet with ppp
by Jeremy Reid on Monday April 15, @12:41PM
|
I'm curious.. are there any methods for having two ppp logins run at boot time?
I currently have two logins, for two 'static' ip addresses.. I've managed to make them both login manually, but I can only make one load at boot time through rc.conf.
What would you suggest? A startup script?
|
[
Add a Reply to this ] |
Re: HOWTO: Connect to the internet with ppp
by Jason on Tuesday April 16, @11:00AM
|
I think a startup script would be an easy way to allow for this, you could create the two dial-up ppp profiles in /etc/ppp/ppp.conf and call one from rc.donf and the other from a script in /usr/local/etc/rc.d/xyz.sh
|
[
Reply to this ]
|
Re: HOWTO: Connect to the internet with ppp
by lucky on Wednesday April 17, @01:18AM
|
#Maybe this will help any of those with ADSL or optic fibre using PPPoE:...
#The /etc/ppp/ppp.conf file
#dont forget to put a space when you start typing set...
#do not type <space>, use the space bar =)
default: #don't forget the column
<space>set device PPPoE:ed1 #assuming ed1 is the lan cards device address
<space>set MRU 1454
<space>set MTU 1454
<space>set log Phase Chat CCP tun command
<space>add default HISADDR
<space>accept chap
<space>alias enable yes
<space>add 0 0 HISADDR
<space>add 0 0 127.2.2.2
<space>set authname YOURLOGIN@YOUR_ISP
<space>set authkey YOURPASSWORD
#If you have static IPs, just change the add 0 0 HISADDR to add <ip> <ip> HISADDR
#The /etc/resolv.conf, add 2 lines...
#if you don't have this file....Make it.
nameserver 200.200.200.201 // ISP nameserver
nameserver 200.200.200.202 // ISP nameserver
#in /etc/hosts add 2 lines under ::1 (return) 127.0.0.1localhost localhost.my.domain
192.168.1.1 bsd bsd.my.domain
192.168.1.2 lucky lucky.my.domain
192.168.1.3 myotherpc myotherpc.my.domain
#in /etc/rc.conf add these lines
hostname="bsd.my.domainh
gateway_enable="YESh
network_interface="lo0 ed1h #assuming ed1 is the lan cards device address
ifconfig_lo0="inet1 127.0.0.1h
ifconfig_ed1="inet 192.168.1.1 netmask 255.255.255.0"
#for static ips, in your rc.conf...
ifconfig_lo0="inet 127.0.0.1"
ifconfig_ep1="inet 192.168.1.1 netmask 255.255.255.0"
ifconfig_tun0="inet <ip1> <ip2> netmask 255.255.255.255"
#replace <ip1+2> with your ips
#Easy to make a file in /usr/local/etc/rc.d/ to connect when you boot.
#easy way...
echo "ppp -ddial" > /usr/local/etc/rc.d/dialup.sh
chmod 777 /usr/local/etc/rc.d/dialup.sh
#reboot your machine. Don't have to but it makes life easy
#or you can just do it manually instead of dialup.sh
ppp -ddial
#and
killall ppp // to kill it =)
#If you now want to connect your windows machines to the internet using your BSD box as a gateway.
#in windows open the tcp/ip properties
#under IP address enter
192.168.1.2
255.255.255.0
#leave wins empty. In gateway enter
192.168.1.1
#in DNS settings select eUse DNSf and enter
lucky my.domain
#in the DNS server numbers add the 2 ip addresses from /etc/resolve.conf
in this case it was
200.200.200.201 // ISP nameserver
200.200.200.202 // ISP nameserver
#Now reboot that badboy and lets see if it works =)
I hope this can help somebody as I spent far too many hours trying to work this out.
|
[
Reply to this ]
|
|
Re: HOWTO: Connect to the internet with ppp
by Leo on Wednesday May 07, @09:59AM
|
Hi,
I saw your examples and are very good. But, I could need if somebody tested ppp in auto mode asking for a passowrd to user.
This is wat I'm trying to do:
in ppp.conf file
leo:
set phone "123456"
set device /dev/cuaa1
set speed 19200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 15 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 60 CONNECT"
set authname MyName
set authkey \"!/bin/cat /home/pass\"
set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.0
I whish to save my password in /home/pass file, so when a dial up is made passowrd is read from /home/pass.
This is what manual says:
If the first character of value is an exclamation mark (``!''), ppp treats the remainder of the string as a program that must be executed to determine the ``authname'' and ``authkey'' values.
The version I run is "PPP Version 2.3.3"
I couldn't make it works. Did anybody try it?
Thanks
Leo
|
[
Add a Reply to this ] |
forget my passowrd
by esl;am on Friday November 19, @06:54AM
|
i forget my yahoo passowrd
|
[
Reply to this ]
|
|
Re: HOWTO: Connect to the internet with ppp
by Leo on Wednesday May 07, @10:02AM
|
I'm sorry because the struct in previous mail.
Here is the same readable.
Hi,
I saw your examples and are very good. But, I could need if somebody tested ppp in auto mode asking for a passowrd to user. This is wat I'm trying to do:
in ppp.conf file leo:
set phone "123456"
set device /dev/cuaa1
set speed 19200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 15 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 60 CONNECT"
set authname MyName
set authkey \"!/bin/cat /home/pass\"
set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.0
I whish to save my password in /home/pass file, so when a dial up is made passowrd is read from /home/pass.
This is what manual says:
If the first character of value is an exclamation mark (``!''), ppp treats the remainder of the string as a program that must be executed to determine the ``authname'' and ``authkey'' values.
The version I run is "PPP Version 2.3.3"
I couldn't make it works. Did anybody try it?
Thanks
Leo
|
[
Add a Reply to this ] |
Re: HOWTO: Connect to the internet with ppp
by jassim on Tuesday April 19, @06:23PM
|
ok fine thx :)
but how can I increase or decrease the sound volume for my external modem using ppp (U.S Robotics External 56.K (serial port))
|
[
Add a Reply to this ] |
The Fine Print: The following
comments are owned by whoever posted them.
( Article Reply )
|