Hello List,


I don't know how to have ppp pppoe stay on one tun as it is switching
between tun0 and tun1 on reboots.



I have routed in rc.conf as routed="-q" but don't understand how to
configure any further to have the internet shared with other computers.
I can't figure out how to set the gateway to show an inet address that
is static to use at a mygateway or option routers with dhcpd on a
different server.





Internet ------ ppp.conf de1 OpenBSD firewall de0
dhcp---------------Hub--------static inet 192.168.1.1 255.255.255.0 hme0
server running dhcpd


|


dhcp

fxp0


Computer 3



On the learning curve with all this new stuff, thanks for any help.



Best regards,



rogern



John 3:16



Script started on Thu Sep  8 23:36:28 2005

luke# cu -l tty00

Connected



login: root

Password:

Last login: Thu Sep  8 23:36:08 on tty00

OpenBSD 3.8 (GENERIC) #586: Fri Sep  2 00:32:30 MDT 2005



Welcome to OpenBSD: The proactively secure Unix-like operating system.



Please use the sendbug(1) utility to report bugs in the system.

Before reporting a bug, please try to reproduce it with the latest

version of the code.  With bug reports, please try to ensure that

enough information to reproduce the problem is enclosed, and if a

known fix for it exists, include that as well.



You have new mail.

Terminal type? [vt220]

Read the afterboot(8) man page for administration advice.

andrew# cd /etc/ppp



andrew# page ppp.conf



 default:

 set log Phase Chat LCP IPCP CCP tun command

 set redial 15 0

 set reconnect 15 10000



pppoe:

 set device "!/usr/sbin/pppoe -i de1"

 set mtu max 1492

 set mru max 1492

 set speed sync

 enable lqr

 set lqrperiod 5

 set dial

 set timeout 0

 disable acfcomp protocomp

 deny acfcomp

 set authname xxxxxx

 set authkey xxxxxx

 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0

 add! default HISADDR

 enable dns

 enable mssfixup



andrew# page rc.conf.local



 config de1 up

 ppp -ddial pppoe



andrew# page pf.conf



# macros

 int_if = "de0"

 ext_if = "tun0"



 tcp_services = "{ 22, 113 }"

 icmp_types = "echoreq"



 priv_nets = "{ 127.0.0.0/8, 192.168.1.0/16, 10.0.0.0/8 }"



 comp3 = "192.168.1.36"



 # options

 set block-policy return

 set loginterface $ext_if



 # scrub

 scrub in all



 # nat/rdr

 nat on $ext_if from $int_if:network to any -> ($ext_if)

 rdr on $int_if proto tcp from any to any port 21 -> 127.0.0.1 port 8021

 rdr on $ext_if proto tcp from any to any port 80 -> $comp3



andrew# route show



Routing tables



Internet:

Destination        Gateway            Flags    Refs      Use    Mtu
Interface

default            64.164.115.254     UGS         0       36      -
tun0

64.164.114.133     localhost          UH          0       48  33192
lo0

64.164.115.254     64.164.114.133     UH          0        0   1492
tun0

loopback           localhost          UGRS        0        0  33192
lo0

localhost          localhost          UH          0        0  33192
lo0

192.168.1/24       link#1             UC          0        0      -
de0

192.168.1.1        08:00:20:86:4e:b6  UHLc        0        4      -
de0

192.168.1.32       localhost          UGHS        0        0  33192
lo0

192.168.1.36       00:02:55:d4:d4:fa  UHLc        0       11      -
de0

BASE-ADDRESS.MCAST localhost          URS         0        0  33192
lo0



Internet6:

Destination        Gateway            Flags    Refs      Use    Mtu
Interface

::/104             localhost.Joshua.l UGRS        0        0      -
lo0

::/96              localhost.Joshua.l UGRS        0        0      -
lo0

localhost.Joshua.l localhost.Joshua.l UH          0        0  33192
lo0

::127.0.0.0/104    localhost.Joshua.l UGRS        0        0      -
lo0

::224.0.0.0/100    localhost.Joshua.l UGRS        0        0      -
lo0

::255.0.0.0/104    localhost.Joshua.l UGRS        0        0      -
lo0

::ffff:0.0.0.0/96  localhost.Joshua.l UGRS        0        0      -
lo0

2002::/24          localhost.Joshua.l UGRS        0        0      -
lo0

2002:7f00::/24     localhost.Joshua.l UGRS        0        0      -
lo0

2002:e000::/20     localhost.Joshua.l UGRS        0        0      -
lo0

2002:ff00::/24     localhost.Joshua.l UGRS        0        0      -
lo0

fe80::/10          localhost.Joshua.l UGRS        0        0      -
lo0

fe80::%de0/64      link#1             UC          0        0      -
de0

fe80::200:f8ff:fe7 00:00:f8:76:73:52  UHL         0        0      -
lo0

fe80::%de1/64      link#2             UC          0        0      -
de1

fe80::a00:2bff:fec 08:00:2b:c3:c9:01  UHL         0        0      -
lo0

fe80::%lo0/64      fe80::1%lo0        U           0        0      -
lo0

fe80::1%lo0        link#7             UHL         0        0      -
lo0

fec0::/10          localhost.Joshua.l UGRS        0        0      -
lo0

ff01::/32          localhost.Joshua.l UC          0        0      -
lo0

ff02::%de0/32      link#1             UC          0        0      -
de0

ff02::%de1/32      link#2             UC          0        0      -
de1

ff02::%lo0/32      localhost.Joshua.l UC          0        0      -
lo0

ff02::%tun0/32     link#8             UC          0        0   1492
tun0

ff02::%tun1/32     link#9             UC          0        0      -
tun1



andrew# reboot

/etc/rc.shutdown in progress...

/etc/rc.shutdown complete.

syncing disks... done rebooting...



halted CPU 0



halt code = 5

HALT instruction executed

PC = fffffc0000230118



CPU 0 booting



(boot dka0.0.0.1004.0 -flags a)

block 0 of dka0.0.0.1004.0 is a valid boot block

reading 15 blocks from dka0.0.0.1004.0

bootstrap code read in

base = 1d8000, image_start = 0, image_bytes = 1e00

initializing HWRPB at 2000

initializing page table at 1ca000

initializing machine state

setting affinity to the primary CPU

jumping to bootstrap code



OpenBSD/Alpha Primary Boot

...OpenBSD/Alpha boot 1.7

VMS PAL rev: 0x1000000010114, OSF PAL rev: 0x1000000020116

Loading bsd...

+179700

[ using 471232 bytes of bsd ELF symbol table ]

consinit: not using prom console

Copyright (c) 1982, 1986, 1989, 1991, 1993

The Regents of the University of California.  All rights reserved.

Copyright (c) 1995-2005 OpenBSD. All rights reserved.
http://www.OpenBSD.org

OpenBSD 3.8 (GENERIC) #586: Fri Sep  2 00:32:30 MDT 2005

[EMAIL PROTECTED]:/usr/src/sys/arch/alpha/compile/GENERIC

Digital Personal WorkStation 500au, 500MHz

8192 byte page size, 1 processor.

total memory = 134217728 (131072K)

(1941504 reserved for PROM, 132276224 used by OpenBSD)

avail memory = 109191168 (106632K)

using 1614 buffers containing 13221888 bytes (12912K) of memory

mainbus0 (root)

cpu0 at mainbus0: ID 0 (primary), 21164A-0 (unknown minor type 0)

cpu0: Architecture extensions: 1<BWX>

cia0 at mainbus0: DECchip 2117x Core Logic Chipset (Pyxis), pass 1

cia0: extended capabilities: 1<BWEN>

cia0: using BWX for PCI config and bus access

pci0 at cia0 bus 0

de0 at pci0 dev 3 function 0 "DEC 21142/3" rev 0x30: dec 550 irq 0

de0: DEC  pass 3.0 address 00:00:f8:76:73:52

sio0 at pci0 dev 7 function 0 "Contaq Microsystems CY82C693U ISA" rev
0x00

pciide0 at pci0 dev 7 function 1 "Contaq Microsystems CY82C693U ISA" rev
0x00: DMA, channel 0 wired to compatibility

pciide0: channel 0 disabled (no drives)

pciide1 at pci0 dev 7 function 2 "Contaq Microsystems CY82C693U ISA" rev
0x00: no DMA, channel 0 wired to compatibility

atapiscsi0 at pciide1 channel 0 drive 0

scsibus0 at atapiscsi0: 2 targets

cd0 at scsibus0 targ 0 lun 0: <TOSHIBA, CD-ROM XM-6302B, 1017> SCSI0
5/cdrom removable

cd0(pciide1:0:0): using PIO mode 4

ohci0 at pci0 dev 7 function 3 "Contaq Microsystems CY82C693U ISA" rev
0x00: isa irq 10, version 1.0, legacy support

usb0 at ohci0: USB revision 1.0

uhub0 at usb0

uhub0: Contaq Microsys OHCI root hub, rev 1.00/1.00, addr 1

uhub0: 2 ports with 2 removable, self powered

tga0 at pci0 dev 11 function 0 "DEC TGA2" rev 0x22: TGA2 pass 2, board
type T8-02

tga0: 1024 x 768, 8bpp, Bt485 RAMDAC

tga0: interrupting at dec 550 irq 4

wsdisplay0 at tga0 mux 1

wsdisplay0: screen 0 added (std, vt100 emulation)

ppb0 at pci0 dev 20 function 0 "DEC 21152 PCI-PCI" rev 0x03

pci1 at ppb0 bus 1

isp0 at pci1 dev 4 function 0 "QLogic ISP1020" rev 0x05: dec 550 irq 3

isp0: invalid NVRAM header

scsibus1 at isp0: 16 targets

sd0 at scsibus1 targ 0 lun 0: <DEC, RZ2CC-KA (C) DEC, 5520> SCSI2
0/direct fixed

sd0: 4091MB, 3708 cyl, 20 head, 113 sec, 512 bytes/sec, 8380080 sec
total

sd1 at scsibus1 targ 1 lun 0: <DEC, RZ2CC-KB (C) DEC, DC2B> SCSI2
0/direct fixed

sd1: 4091MB, 3708 cyl, 20 head, 113 sec, 512 bytes/sec, 8380080 sec
total

de1 at pci1 dev 8 function 0 "DEC 21142/3" rev 0x30: dec 550 irq 12

de1: DEC DE500-BA  pass 3.0 address 08:00:2b:c3:c9:01

de2 at pci1 dev 9 function 0 "DEC 21142/3" rev 0x30: dec 550 irq 16

de2: DEC DE500-BA  pass 3.0 address 08:00:2b:c3:c3:d8

isa0 at sio0

vga0 at isa0 port 0x3b0/48 iomem 0xa0000/131072

wsdisplay1 at vga0 mux 1

wsdisplay1: screen 0-5 added (80x25, vt100 emulation)

isadma0 at isa0

com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo

com0: console

com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo

pckbc0 at isa0 port 0x60/5

pcppi0 at isa0 port 0x61

midi0 at pcppi0: <PC speaker>

spkr0 at pcppi0

isabeep0 at pcppi0

lpt0 at isa0 port 0x3bc/4 irq 7

fdc0 at isa0 port 0x3f0/6 irq 6 drq 2

fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec

mcclock0 at isa0 port 0x70/2: mc146818 or compatible

stray isa irq 15

root on sd0a swap on sd0b

rootdev=0x800 rrootdev=0x800 rawdev=0x802

swapctl: adding /dev/sd1b as swap device at priority 0

Automatic boot in progress: starting file system checks.

/dev/rsd0a: file system is clean; not checking

/dev/rsd1e: file system is clean; not checking

/dev/rsd0e: file system is clean; not checking

/dev/rsd1d: file system is clean; not checking

/dev/rsd0d: file system is clean; not checking

Working in ddial mode

Using interface: tun0

setting tty flags

stray isa irq 3

pf enabled

net.inet.ip.forwarding: 0 -> 1

vm.swapencrypt.enable: 1 -> 0

starting network

Working in ddial mode

Using interface: tun1

DHCPREQUEST on de0 to 255.255.255.255 port 67

DHCPACK from 192.168.1.1

bound to 192.168.1.32 -- renewal in 1296000 seconds.

starting system logger

starting rpc daemons:.

savecore: /dev/sd0b: Device not configured

checking quotas: done.

building ps databases: kvm dev.

clearing /tmp

starting pre-securelevel daemons:.

setting kernel security level: kern.securelevel: 0 -> 1

creating runtime link editor directory cache.

preserving editor files

starting network daemons: routed sendmail sshd.

starting local daemons:.

standard daemons: cron.

Thu Sep  8 23:42:47 PDT 2005



OpenBSD/alpha (andrew.Joshua.local) (tty00)



login: root

Password:

Last login: Thu Sep  8 23:39:31 on tty00

OpenBSD 3.8 (GENERIC) #586: Fri Sep  2 00:32:30 MDT 2005



Welcome to OpenBSD: The proactively secure Unix-like operating system.



Please use the sendbug(1) utility to report bugs in the system.

Before reporting a bug, please try to reproduce it with the latest

version of the code.  With bug reports, please try to ensure that

enough information to reproduce the problem is enclosed, and if a

known fix for it exists, include that as well.



You have new mail.

Terminal type? [vt220]

Read the afterboot(8) man page for administration advice.



andrew# ping 192.168.1.1

PING 192.168.1.1 (192.168.1.1): 56 data bytes

64 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=1.954 ms

64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=0.004 ms

64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.004 ms

^C

--- 192.168.1.1 ping statistics ---

3 packets transmitted, 3 packets received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.004/0.654/1.954/0.919 ms



andrew# ping 192.168.1.36

PING 192.168.1.36 (192.168.1.36): 56 data bytes

64 bytes from 192.168.1.36: icmp_seq=0 ttl=255 time=5.863 ms

64 bytes from 192.168.1.36: icmp_seq=1 ttl=255 time=0.004 ms

64 bytes from 192.168.1.36: icmp_seq=2 ttl=255 time=0.004 ms

^C

--- 192.168.1.36 ping statistics ---

3 packets transmitted, 3 packets received, 0.0% packet loss

round-trip min/avg/max/std-dev = 0.004/1.957/5.863/2.761 ms

andrew# /sbin/ifconfig tn un0

tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 3000

andrew# /sbin/ifconfig tun1

tun1: flags=8011<UP,POINTOPOINT,MULTICAST> mtu 1492

groups: egress inet 66.124.100.63 --> 66.124.103.254 netmask 0xffffff00

Reply via email to