<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.moustik.orgfeed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>moustik.org - OpenBSD</title>
  <link>http://www.moustik.org</link>
  <description>Admin sys linux en mode junior</description>
  <language>fr</language>
  <pubDate>Tue, 04 Nov 2008 23:55:18 +0100</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Soekris net5501-70 &amp; OpenBSD-4.2</title>
    <link>http://www.moustik.org/2008/03/26/Soekris-net5501-70-OpenBSD-42</link>
    <guid isPermaLink="false">urn:md5:732595c24ad113fd845aab86768b2e3a</guid>
    <pubDate>Wed, 26 Mar 2008 23:06:00 +0100</pubDate>
    <dc:creator>Ludo</dc:creator>
        <category>OpenBSD</category>
        <category>OpenBSD</category>    
    <description>&lt;p&gt;Enfin!!! sans mentir ça fait (trop) longtemps que je voulais un boitier (silencieux et compact) pour ma passerelle et la voilà enfin :) elle n'attend que son OpenBSD. Alors on y va pour une installation en bonne et dûe forme.&lt;/p&gt;    &lt;p&gt;Pour commencer un petit topo sur ce que j'ai comandé au cas où vous seriez intéréssé par ce genre de petites box commandée sur &lt;a href=&quot;https://www.kd85.com/&quot; title=&quot;kd85.com&quot;&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;net5501-70 avec son slot case [10550170]&amp;nbsp;: 251,00 €&lt;/li&gt;
&lt;li&gt;Kit disque dur 2&quot;1/2 pata [14550110]&amp;nbsp;: 9,00 €&lt;/li&gt;
&lt;li&gt;Alimentation 12v, 1.5v cable eu [31201212]&amp;nbsp;: 15,00 €&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;/pre&gt;

&lt;p&gt;J'avais déjà un disque dur 2&quot;1/2 ainsi que cable DB9 null modem.&lt;/p&gt;


&lt;p&gt;Au niveau du prix, cela reste relativement cher même si le silence et la compacité ont un coût certain. Comptez 15,00 € pour le transport et 61,00 € pour les taxes :/ Faites vos comptes... ~ 350 €&lt;/p&gt;


&lt;p&gt;Au niveau livraison, c'est du ultra rapide, commandé le dimanche soir, reçu le mardi midi :)
L'emballage est... avec des puffy dessus, puis au niveau documentation c'est un peu moins ça, pour le moment il n'y a pas de manuel pour la net5501-70, donc on a le manuel de la série net4801 et quelques pages sur les specs de la net5501-70.
On y retrouve également des stickers puffy que je me suis empressé de coller sur la porte de ma concierge :)&lt;/p&gt;


&lt;h3&gt;Prérequis&lt;/h3&gt;


&lt;p&gt;La situation chez moi est la suivante&amp;nbsp;: Seule ma future ex-passerelle possède un port série et seule ma linuxbox possède une interface réseau de libre pour le PXE. Donc on va tout faire depuis l'ancienne passerelle pour l'installation et le boot PXE se fera depuis Linux.&lt;/p&gt;


&lt;h3&gt;Mise en place de tftp sous Linux&lt;/h3&gt;


&lt;p&gt;En l'occurence une gentoo mais après tout on s'en fout ...&lt;/p&gt;


&lt;p&gt;On va commencer par s'installer un server tftp&amp;nbsp;:
Je tiens à préciser quand même que je n'ai pas réussi à faire fonctionner &lt;strong&gt;atftp&lt;/strong&gt; suite à des segfault dans tous les sens dès qu'il devait livrer le &lt;strong&gt;bsd.rd&lt;/strong&gt;, j'ai tenté une réinstallation et quelques modifications de conf mais sans succès! Je laisse quand même la procédure mais le reste de l'opération se fera avec &lt;strong&gt;tftp-hpa&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
# emerge -av atftp
[ebuild  N    ] net-ftp/atftp-0.7-r1  USE=&amp;quot;pcre readline tcpd (-selinux)&amp;quot; 223 kB 
Total: 1 package (1 new), Size of downloads: 223 kB
Would you like to merge these packages? [Yes/No]
&lt;/pre&gt;

&lt;p&gt;On créé notre répertoire où on va stocker les fichiers à délivrer via tftp&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# mkdir /tftproot; chmod 777 /tftproot
&lt;/pre&gt;

&lt;p&gt;On le configure, la configuration par défaut va nous suffir&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# vi /etc/conf.d/atftp
&lt;/pre&gt;
&lt;pre&gt;
# Config file for tftp server
TFTPD_ROOT=&amp;quot;/tftproot&amp;quot;
TFTPD_OPTS=&amp;quot;--daemon --user nobody --group nobody&amp;quot;
&lt;/pre&gt;

&lt;p&gt;On le démarre&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# /etc/init.d/atftp start
&lt;/pre&gt;

&lt;p&gt;On vérifie si ca tourne&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# netstat -nptlu|grep tftp
udp        0      0 0.0.0.0:69              0.0.0.0:*                           27485/in.tftpd
&lt;/pre&gt;

&lt;p&gt;Bon et maintenant avec &lt;strong&gt;tftp-hpa&lt;/strong&gt; avec lequel je n'ai eu aucun problème&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# emerge tftp-hpa
&lt;/pre&gt;

&lt;p&gt;Pour la configuration&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# vi /etc/conf.d/in.tftpd
&lt;/pre&gt;
&lt;pre&gt;
INTFTPD_PATH=&amp;quot;/tftproot/&amp;quot;
INTFTPD_OPTS=&amp;quot;-R 4096:32767 -s ${INTFTPD_PATH}&amp;quot;
&lt;/pre&gt;
&lt;pre&gt;
# /etc/init.d/in.tftpd start
&lt;/pre&gt;

&lt;h3&gt;Mise en place d'un serveur dhcp&lt;/h3&gt;

&lt;p&gt;On installe&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# emerge dhcp
&lt;/pre&gt;

&lt;p&gt;On le configure&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# vi /etc/dhcp/dhcpd.conf
&lt;/pre&gt;
&lt;pre&gt;
log-facility local7;
allow booting;
allow bootp;
ddns-update-style none;
subnet 172.12.12.0 netmask 255.255.255.0 {
        range 172.12.12.10 172.12.12.12;
        filename &amp;quot;pxeboot&amp;quot;;
        default-lease-time 600;
        max-lease-time 7200;
        next-server 172.12.12.2;
}
&lt;/pre&gt;

&lt;p&gt;Attention à ne pas oublier la dernière ligne ( &lt;strong&gt;next-server 172.12.12.2;&lt;/strong&gt; ) qui est l'IP de votre serveur dhcp, sans ce paramètre vous obtiendrez une erreur 60 des plus obscure.&lt;/p&gt;


&lt;p&gt;Bon là on relance dhcpd et on peut déjà voir si la soekris en bootant trouve le serveur&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# tail -f /var/log/messages
Mar 26 01:10:30 tuxic dhcpd: DHCPDISCOVER from 00:00:24:c9:59:2c via eth1
Mar 26 01:10:31 tuxic dhcpd: DHCPOFFER on 172.12.12.10 to 00:00:24:c9:59:2c via eth1
Mar 26 01:10:31 tuxic dhcpd: DHCPREQUEST for 172.12.12.10 (172.12.12.2) from 00:00:24:c9:59:2c via eth1
Mar 26 01:10:31 tuxic dhcpd: DHCPACK on 172.12.12.10 to 00:00:24:c9:59:2c via eth1
&lt;/pre&gt;

&lt;p&gt;Bon c'est déjà ca de fait, reste maintenant à offrir un bootloader&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# cd /tftproot
# wget ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.2/i386/pxeboot
# wget  ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.2/i386/bsd.rd
&lt;/pre&gt;

&lt;p&gt;On créé le fichier boot.conf pour passer des paramètres au boot&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# mkdir etc; vi etc/boot.conf
&lt;/pre&gt;
&lt;pre&gt;
set tty com0
stty com0 19200
boot bsd.rd
&lt;/pre&gt;

&lt;h3&gt;Côté Soekris&lt;/h3&gt;

&lt;p&gt;Bon, on va s'occuper maitenant de la soekris à proprement parler. Donc depuis la box OpenBSD, branchement série effectué entre la soekris et l'OpenBSD box (après plusieurs essais infructueux suite à la non activation du port série dans le bios de la tour et des conflits d'IRQ réglés à l'arrache suite à l'activation du port série), j'arrive enfin à me connecter à la soekris :)&lt;/p&gt;
&lt;pre&gt;
# cu -l tty00 -s 19200
&lt;/pre&gt;

&lt;p&gt;On doit arriver à quelque chose comme ca&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
comBIOS ver. 1.32i 20071005  Copyright (C) 2000-2007 Soekris Engi
net5501
0512 Mbyte Memory                        CPU Geode LX 500 Mhz 
Pri Mas  ST940815A                       LBA Xlt 1024-255-63  390
Slot   Vend Dev  ClassRev Cmd  Stat CL LT HT  Base1    Base2   In
-----------------------------------------------------------------
0:01:2 1022 2082 10100000 0006 0220 08 00 00 A0000000 00000000 10
0:06:0 1106 3053 02000096 0117 0210 08 40 00 0000E101 A0004000 11
0:07:0 1106 3053 02000096 0117 0210 08 40 00 0000E201 A0004100 05
0:08:0 1106 3053 02000096 0117 0210 08 40 00 0000E301 A0004200 09
0:09:0 1106 3053 02000096 0117 0210 08 40 00 0000E401 A0004300 12
0:20:0 1022 2090 06010003 0009 02A0 08 40 80 00006001 00006101 
0:20:2 1022 209A 01018001 0005 02A0 08 00 00 00000000 00000000 
0:21:0 1022 2094 0C031002 0006 0230 08 00 80 A0005000 00000000 15
0:21:1 1022 2095 0C032002 0006 0230 08 00 00 A0006000 00000000 15

 1 Seconds to automatic boot.   Press Ctrl-P for entering Monitor
Using drive 0, partition 3.
Loading...
probing: pc0 com0 com1 pci mem[639K 511M a20=on] 
disk: hd0+
... 
&lt;/pre&gt;

&lt;p&gt;A ce niveau là, la soekris accroche une ip et commence à télécharger les fichiers et l'installation peut commencer :)&lt;/p&gt;


&lt;h3&gt;Installation d'OpenBSD&lt;/h3&gt;

&lt;p&gt;J'avais déjà fait un post sur le sujet, je vais le refaire en version plus complète.&lt;/p&gt;
&lt;pre&gt;
erase ^?, werase ^W, kill ^U, intr ^C, status ^T
(I)nstall, (U)pgrade or (S)hell? I
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Choisir le keymap :&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
Welcome to the OpenBSD/i386 4.2 install program.

This program will help you install OpenBSD. At any prompt except password
prompts you can escape to a shell by typing '!'. Default answers are shown
in []'s and are selected by pressing RETURN.  At any time you can exit this
program by pressing Control-C, but exiting during an install can leave your
system in an inconsistent state.

Terminal type? [vt220]
kbd(8) mapping? ('L' for list) [none] L
Major tables: be br cf de dk es fr hu it jp la lt lv nl no pl pt ru sf sg si sv tr ua uk us
kbd(8) mapping? ('L' for list) [none] fr
kbd: keyboard mapping set to fr
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;On confirme notre installation !!&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
IS YOUR DATA BACKED UP? As with anything that modifies disk contents, this
program can cause SIGNIFICANT data loss.

It is often helpful to have the installation notes handy. For complex disk
configurations, relevant disk hardware manuals and a calculator are useful.

Proceed with install? [no] yes
Cool! Let's get to it.
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;On commence par le partitionnement du disque :&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
You will now initialize the disk(s) that OpenBSD will use. To enable all
available security features you should configure the disk(s) to allow the
creation of separate filesystems for /, /tmp, /var, /usr, and /home.

Available disks are: wd0.
Which one is the root disk? (or 'done') [wd0]

Do you want to use *all* of wd0 for OpenBSD? [no] yes
Putting all of wd0 into an active OpenBSD MBR partition (type 'A6')...done.

You will now create an OpenBSD disklabel inside the OpenBSD MBR
partition. The disklabel defines how OpenBSD splits up the MBR partition
into OpenBSD partitions in which filesystems and swap space are created.

The offsets used in the disklabel are ABSOLUTE, i.e. relative to the
start of the disk, NOT the start of the OpenBSD MBR partition.

# Inside MBR partition 3: type A6 start 63 size 78140097
Treating sectors 63-78140160 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.

Initial label editor (enter '?' for help at any prompt)
&amp;gt; a
partition: [a]
offset: [63]
size: [78140097] 1024M
Rounding to cylinder: 2104452
FS type: [4.2BSD]
mount point: [none] /
&amp;gt; a
partition: [b]
offset: [2104515]
size: [76035645] 512m^H
Invalid entry
size: [76035645] 512M
Rounding to cylinder: 1060290
FS type: [swap]
&amp;gt; a
partition: [d]
offset: [3164805]
size: [74975355] 512M
Rounding to cylinder: 1060290
FS type: [4.2BSD]
mount point: [none] /tmp
&amp;gt; a
partition: [e]
offset: [4225095]
size: [73915065] 4096M
Rounding to cylinder: 8401995
FS type: [4.2BSD]
mount point: [none] /var
&amp;gt; a
partition: [f]
offset: [12627090]
size: [65513070] 8192M
Rounding to cylinder: 16787925
FS type: [4.2BSD]
mount point: [none] /usr
&amp;gt; a
partition: [g]
offset: [29415015]
size: [48725145]
FS type: [4.2BSD]
mount point: [none] /home
&amp;gt; q
Write new label?: [y]
Mount point for wd0d (size=530145k)? (or 'none' or 'done') [/tmp] done
No more disks to initialize.

OpenBSD filesystems:
wd0a /
wd0d /tmp
wd0e /var
wd0f /usr
wd0g /home
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;On fixe notre configuration :&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
The next step *DESTROYS* all existing data on these partitions!
Are you really sure that you're ready to proceed? [no] yes
/dev/rwd0a: 1027.6MB in 2104452 sectors of 512 bytes
6 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
newfs: reduced number of fragments per cylinder group from 66264 to 66000 to enlarge last cylinder group
/dev/rwd0d: 517.7MB in 1060288 sectors of 512 bytes
5 cylinder groups of 128.91MB, 8250 blocks, 16512 inodes each
/dev/rwd0e: 4102.5MB in 8401992 sectors of 512 bytes
21 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rwd0f: 8197.2MB in 16787924 sectors of 512 bytes
41 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rwd0g: 23791.6MB in 48725144 sectors of 512 bytes
118 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/wd0a on /mnt type ffs (rw, asynchronous, local, ctime=Tue Aug 28 17:07:36 2007)
/dev/wd0g on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid, ctime=Tue Aug 28 17:07:37 2007)
/dev/wd0d on /mnt/tmp type ffs (rw, asynchronous, local, nodev, nosuid, ctime=Tue Aug 28 17:07:37 2007)
/dev/wd0f on /mnt/usr type ffs (rw, asynchronous, local, nodev, ctime=Tue Aug 28 17:07:37 2007)
/dev/wd0e on /mnt/var type ffs (rw, asynchronous, local, nodev, nosuid, ctime=Tue Aug 28 17:07:37 2007)
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;On donne un nom :&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
System hostname? (short form, e.g. 'foo') tuxic
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;On configure maintenant le réseau&lt;/strong&gt;
Dans mon cas, je suis derrière une freebox en mode bridge, c'est donc la soekris qui recevra l'ip publique. Je créé 3 sous réseaux (LAN, DMZ1, DMZ2).&lt;/p&gt;
&lt;pre&gt;
Configure the network? [yes]
Available interfaces are: vr0 vr1 vr2 vr3.
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;interface vr0&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
Which one do you wish to initialize? (or 'done') [vr0]
Symbolic (host) name for vr0? [tuxic]
The media options for vr0 are currently
        media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the media options? [no]
IPv4 address for vr0? (or 'none' or 'dhcp') dhcp
Issuing hostname-associated DHCP request for vr0.
DHCPDISCOVER on vr0 to 255.255.255.255 port 67 interval 1
DHCPOFFER from 172.12.12.2
DHCPREQUEST on vr0 to 255.255.255.255 port 67
DHCPACK from 172.12.12.2
bound to 172.12.12.10 -- renewal in 300 seconds.
IPv6 address for vr0? (or 'rtsol' or 'none') [none] rtsol
Available interfaces are: vr1 vr2 vr3.
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;interface vr1&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
Which one do you wish to initialize? (or 'done') [vr1]
Symbolic (host) name for vr1? [tuxic] LAN
The media options for vr1 are currently
        media: Ethernet autoselect (none)
Do you want to change the media options? [no]
IPv4 address for vr1? (or 'none' or 'dhcp') 10.0.0.1
Netmask? [255.255.255.0]
IPv6 address for vr1? (or 'rtsol' or 'none') [none]
Available interfaces are: vr2 vr3.
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;interface vr2&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
Which one do you wish to initialize? (or 'done') [vr2]
Symbolic (host) name for vr2? [tuxic] DMZ1
The media options for vr2 are currently
        media: Ethernet autoselect (none)
Do you want to change the media options? [no]
IPv4 address for vr2? (or 'none' or 'dhcp') 172.12.12.1
Netmask? [255.255.255.0]
IPv6 address for vr2? (or 'rtsol' or 'none') [none]
Available interfaces are: vr3.
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;interface vr3&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
Which one do you wish to initialize? (or 'done') [vr3]
Symbolic (host) name for vr3? [tuxic] DMZ2
The media options for vr3 are currently
        media: Ethernet autoselect (none)
Do you want to change the media options? [no]
IPv4 address for vr3? (or 'none' or 'dhcp') none
IPv6 address for vr3? (or 'rtsol' or 'none') [none]
Available interfaces are: vr3.
Which one do you wish to initialize? (or 'done') [vr3] done
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;On va passer à l'installation du système à proprement parler.&lt;/strong&gt;
Dans ma configuration je suis connecté au net via eth0 et eth1 sert de PXE à la soekris. Pour offrir le réseau j'ai utilisé un proxy http (tinyproxy en l'occurence) pour que la soekris puisse accéder au net.&lt;/p&gt;
&lt;pre&gt;
Location of sets? (disk ftp http or 'done') [disk] http
HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none] http://172.12.12.2:8888
Display the list of known http servers? [no] no
Server? (IP address, hostname or 'done') [spargel.kd85.com/pub] spargel.kd85.com/ftp
Server directory? [pub/OpenBSD/4.2/i386]

Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-' to the set name, file name pattern or 'all'. Selected
sets are labelled '[X]'.

      [X] bsd
      [X] bsd.rd
      [ ] bsd.mp
      [X] base42.tgz
      [X] etc42.tgz
      [X] misc42.tgz
      [X] comp42.tgz
      [X] man42.tgz
      [X] game42.tgz
      [ ] xbase42.tgz
      [ ] xetc42.tgz
      [ ] xshare42.tgz
      [ ] xfont42.tgz
      [ ] xserv42.tgz
Set name? (or 'done') [bsd] done
Location of sets? (disk ftp http or 'done') [disk] done
&lt;/pre&gt;

&lt;p&gt;A vous de sélectionner les sets qui vous conviennent. Par exemple pour supprimer le set game42.tgz, taper&amp;nbsp;: -game42.tgz&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;ssh/ntp/etc.&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
Start sshd(8) by default? [yes]
NTP server? (or 'none' or 'default') [none]
Do you expect to run the X Window System? [no]
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Définir la console par défaut&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
Change the default console to com0? [no] yes
Saving configuration files...done.
Generating initial host.random file...done.
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Définir le timezone&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
What timezone are you in? ('?' for list) [Canada/Mountain] Europe/Paris
Setting local timezone to 'Europe/Paris'...done.
Making all device nodes...done.
Installing boot block...
boot: /mnt/boot
proto: /usr/mdec/biosboot
device: /dev/rwd0c
/usr/mdec/biosboot: entry point 0
proto bootblock size 512
/mnt/boot is 3 blocks x 16384 bytes
fs block shift 2; part offset 63; inode block 104, offset 11816
using MBR partition 3: type 166 (0xa6) offset 63 (0x3f)
done.

CONGRATULATIONS! Your OpenBSD install has been successfully completed!
To boot the new system, enter halt at the command prompt. Once the
system has halted, reset the machine and boot from the disk.
&lt;/pre&gt;

&lt;p&gt;Voilà c'est terminé pour l'installation.&lt;/p&gt;


&lt;p&gt;Quelques petits détails supplémentaires si vous rencontrez des problèmes au boot.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Si vous avez répondu no à la question Change the default console to com0? votre soekris ne pas booter, car la console par défaut ne sera pas bonne (je ne maitrise pas du tout ce point laors je ne peux vraiment expliquer clairement le pourquoi du comment), cela dit lors de mon installation j'avais répondu no et empéchait le système de booter. Dans ce cas lors du prompt de la soekris taper&amp;nbsp;:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;
boot&amp;gt; set tty com0
&lt;/pre&gt;


&lt;p&gt;Et là votre système va booter correctement et pour fixer de manière définitive ce paramètre&amp;nbsp;:&lt;/p&gt;
&lt;pre&gt;
# vi /etc/boot.conf
&lt;/pre&gt;
&lt;pre&gt;
set tty com0
stty com0 57600
&lt;/pre&gt;

&lt;p&gt;Voilà pour un tour d'horizon de cette installation. Tout reste à faire, pf/nat et autres configurations :)&lt;/p&gt;


&lt;p&gt;Pour finir, l'extinction définitive de mon ancienne passerelle fut un grand moment, je ne soupsonnais même plus que le niveau sonore était a ce point élevé :D&lt;/p&gt;</description>
    
    
    
          <comments>http://www.moustik.org/2008/03/26/Soekris-net5501-70-OpenBSD-42#comment-form</comments>
      <wfw:comment>http://www.moustik.org/2008/03/26/Soekris-net5501-70-OpenBSD-42#comment-form</wfw:comment>
      <wfw:commentRss>http://www.moustik.org/feed/rss2/comments/21</wfw:commentRss>
      </item>
    
  <item>
    <title>Installation d'un OpenBSD4.2</title>
    <link>http://www.moustik.org/2008/02/09/Installation-dun-OpenBSD42</link>
    <guid isPermaLink="false">urn:md5:3a99e18af301109cefd10f9577425381</guid>
    <pubDate>Sat, 09 Feb 2008 01:41:00 +0100</pubDate>
    <dc:creator>Ludo</dc:creator>
        <category>OpenBSD</category>
        <category>OpenBSD</category>    
    <description>&lt;p&gt;A l'occasion de la maj de ma passerelle, je place un petit article sur une installation d'un OpenBSD dans sa dernière version en date, cad 4.2. Perso, une fois qu'on a goutté à PacketFilter, je crois qu'on peut plus revenir en arrière :) enfin cela n'engage que moi.&lt;/p&gt;    &lt;p&gt;Installation rapide d'une installation OpenBSD avec l'install42.iso&lt;/p&gt;

&lt;pre&gt;
rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02
erase ^?, werase ^W, kill ^U, intr ^C, status ^T
(I)nstall, (U)pgrade or (S)hell? I
&lt;/pre&gt;


&lt;p&gt;Prendre Install.&lt;/p&gt;

&lt;pre&gt;
Specify terminal type: [vt220] Entrée
kdb(8) mapping? ('?' for list) [none] fr
&lt;/pre&gt;


&lt;p&gt;fr et on valide&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
Proceed with install? [no] yes
&lt;/pre&gt;


&lt;p&gt;&lt;strong&gt;Partie disque dur&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;
Available disks are: wd0
which one is the root disk? (or 'done') [wd0] enter!
Do you want to use *all* of wd0 for OpenBSD? [no] yes
&lt;/pre&gt;


&lt;p&gt;Là, je prends tout le disque pour OpenBSD et le partitionnement sera&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
/     1024m
swap  512m
/tmp  512m
/var  2048m
/usr  8192m
/home &amp;lt;le reste&amp;gt;
&lt;/pre&gt;


&lt;p&gt;Définir les partition avec fdisk, ce qui doit donner quelque chose comme ca&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
# disklabel wd0
# Inside MBR partition 3: type A6 start 63 size 80405262
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: IC35L040AVER07-0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 5005
total sectors: 80418240
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

6 partitions:
#                size           offset  fstype [fsize bsize  cpg]
a:          2104452               63  4.2BSD   2048 16384    1 
b:          1060290          2104515    swap                   
c:         80418240                0  unused      0     0      
d:          1060290          3164805  4.2BSD   2048 16384   16 
e:          4209030          4225095  4.2BSD   2048 16384   16 
f:         16787925          8434125  4.2BSD   2048 16384   16 
g:         55183275         25222050  4.2BSD   2048 16384   16
&lt;/pre&gt;


&lt;p&gt;Le disque va être partitioner et les points de montage créés.&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;Partie réseau&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;Nom de la machine&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
Enter system hostname (short form, e.g. 'foo'): tuxic
&lt;/pre&gt;


&lt;p&gt;Les cartes réseau, ici 3 cartes, 2 intel et une carte wifi linksys&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
Configure the network? [yes] Enter
Available interfaces are: fxp0 ral0 fxp1.

Symbolic (host) name for fxp0? [tuxic] Enter
The default media for fxp0 is
         media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the default media? [no] Enter

IP address for fxp0? (or 'dhcp') 172.172.172.1
Netmask? [255.255.255.0] Enter
IPv6 address for fxp0? (or 'rtsol' or 'none') [none]
No more interfaces to initialize.
&lt;/pre&gt;


&lt;p&gt;et ainsi de suite pour chaque interface, on finalise en configurant dns, passerelle, etc.&lt;/p&gt;

&lt;pre&gt;
DNS domain name? (e.g. 'bar.com') [my.domain] example.com
DNS nameserver? (IP address or 'none') [none] 172.172.172.172 172.172.172.173
Use the nameserver now? [yes] Enter

Default route? (IP address, 'dhcp' or 'none') 192.172.172.1
add net default: gateway 192.168.0.254
Edit hosts with ed? [no] Enter
Do you want to do any manual network configuration? [no] Enter
&lt;/pre&gt;


&lt;p&gt;&lt;strong&gt;Installation système&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;Définir le mot de passe root&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
Password for root account? (will not echo)
Password for root account? (again)
&lt;/pre&gt;


&lt;p&gt;Choisir une méthode d'intallation&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
Let's install the sets!
Location of sets? (cd disk ftp http or 'done') [cd] ftp
&lt;/pre&gt;


&lt;p&gt;Choisir un mirroir et sélectionner les paquets de base, supprimer ce qui est inutile pour faire une passerelle&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
The following sets are available. Enter a filename, 'all' to select
all the sets, or 'done'. You may de-select a set by prepending a '-'
to its name.

         [X] bsd
         [X] bsd.rd
         [ ] bsd.mp
         [X] base42.tgz
         [X] etc42.tgz
         [X] misc42.tgz
         [X] comp42.tgz
         [X] man42.tgz
         [X] game42.tgz
         [ ] xbase42.tgz
         [ ] xetc42.tgz
         [ ] xshare42.tgz
         [ ] xfont42.tgz
         [ ] xserv42.tgz

File Name? (or 'done') [bsd.mp]
&lt;/pre&gt;


&lt;p&gt;Pour supprimer un set, taper&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
-game42.tgz
&lt;/pre&gt;


&lt;p&gt;Les autres nous seront utiles. On peut même rajouter **xbase42.tgz** si vous comptez installer vim, hé oui c'est pas logique du tout, cela va être changé dans la 4.3 mais la dépendance expat  fait partie de xbase42.tgz, elle va être déplacée dans base43.tgz dans la prochaine version.&lt;/p&gt;


&lt;p&gt;Démarrage automatique de ssh&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
Start sshd(8) by default? [yes]
&lt;/pre&gt;


&lt;p&gt;Démon ntp&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
NTP server? (or 'none' or 'default') [none] default
&lt;/pre&gt;


&lt;p&gt;Serveur X?&lt;/p&gt;

&lt;pre&gt;
Do you expect to run the X Window System? [yes] no
&lt;/pre&gt;


&lt;p&gt;Console sur série?&lt;/p&gt;

&lt;pre&gt;
Change the default console to com0? [no] Enter
&lt;/pre&gt;


&lt;p&gt;Définition de la timezone&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
What timezone are you in? ('?' for list) [Canada/Mountain] ? Europe/Paris
&lt;/pre&gt;

&lt;pre&gt;
CONGRATULATIONS! Your OpenBSD install has been successfully completed!
To boot the new system, enter halt at the command prompt. Once the
system has halted, reset the machine and boot from the disk.
 #
&lt;/pre&gt;

&lt;p&gt;Voilà, c'est fini, rebooter et y'a plus qu'a :)&lt;/p&gt;</description>
    
    
    
          <comments>http://www.moustik.org/2008/02/09/Installation-dun-OpenBSD42#comment-form</comments>
      <wfw:comment>http://www.moustik.org/2008/02/09/Installation-dun-OpenBSD42#comment-form</wfw:comment>
      <wfw:commentRss>http://www.moustik.org/feed/rss2/comments/5</wfw:commentRss>
      </item>
    
</channel>
</rss>