@@ -69,29 +69,31 @@ Ignore the TFTP Server settings.
6969
7070** TFTP server setup on a debian machine such as Ubuntu or Raspberry Pi**
7171
72- > apt-get update
73- >
74- > apt-get install tftpd-hpa
75- >
76- > cd /srv/tftp/
77- >
78- > wget http://ftp.nl.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/netboot.tar.gz
79- >
80- > wget http://ftp.nl.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/pxelinux.0
81- >
82- > wget https://bootstrap.grid.tf/krn/prod/YOUR_FARM_ID --no-check-certificate
83- >
84- > mv YOUR_FARM_ID ipxe-prod.lkrn
85- >
86- > tar -xvzf netboot.tar.gz
87- >
88- > rm version.info netboot.tar.gz
89- >
90- > rm pxelinux.cfg/default
91- >
92- > chmod 777 /srv/tftp/pxelinux.cfg (optional if next step fails)
93- >
94- > echo 'default ipxe-prod.lkrn' >> pxelinux.cfg/default
72+ ```
73+ apt-get update
74+
75+ apt-get install tftpd-hpa
76+
77+ cd /srv/tftp/
78+
79+ wget http://ftp.nl.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/netboot.tar.gz
80+
81+ wget http://ftp.nl.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/pxelinux.0
82+
83+ wget https://bootstrap.grid.tf/krn/prod/YOUR_FARM_ID --no-check-certificate
84+
85+ mv YOUR_FARM_ID ipxe-prod.lkrn
86+
87+ tar -xvzf netboot.tar.gz
88+
89+ rm version.info netboot.tar.gz
90+
91+ rm pxelinux.cfg/default
92+
93+ chmod 777 /srv/tftp/pxelinux.cfg (optional if next step fails)
94+
95+ echo 'default ipxe-prod.lkrn' >> pxelinux.cfg/default
96+ ```
9597
9698
9799** TFTP Server on a OPNsense router**
@@ -102,29 +104,31 @@ The first step is to download the TFTP server plugin. Go to system>firmware>Stat
102104
103105Turn on ssh for your router. In OPNsense it is System>Settings>Administration. Then check the Enable, root login, and password login. Hop over to Putty and connect to your router, normally 192.168.1.1. Login as root and input your password. Hit 8 to enter the shell.
104106
105- In OPNsense the tftp directory is /usr/local/tftp
106-
107- > cd /usr/local
108- >
109- > mkdir tftp
110- >
111- > cd ./tftp
112- >
113- > fetch http://ftp.nl.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/netboot.tar.gz
114- >
115- > fetch http://ftp.nl.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/pxelinux.0
116- >
117- > fetch https://bootstrap.grid.tf/krn/prod/YOUR_FARM_ID
118- >
119- > mv YOUR_FARM_ID ipxe-prod.lkrn
120- >
121- > tar -xvzf netboot.tar.gz
122- >
123- > rm version.info netboot.tar.gz
124- >
125- > rm pxelinux.cfg/default
126- >
127- > echo 'default ipxe-prod.lkrn' >> pxelinux.cfg/default
107+ In OPNsense, the tftp directory is ` /usr/local/tftp ` .
108+
109+ ```
110+ cd /usr/local
111+
112+ mkdir tftp
113+
114+ cd ./tftp
115+
116+ fetch http://ftp.nl.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/netboot.tar.gz
117+
118+ fetch http://ftp.nl.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/pxelinux.0
119+
120+ fetch https://bootstrap.grid.tf/krn/prod/YOUR_FARM_ID
121+
122+ mv YOUR_FARM_ID ipxe-prod.lkrn
123+
124+ tar -xvzf netboot.tar.gz
125+
126+ rm version.info netboot.tar.gz
127+
128+ rm pxelinux.cfg/default
129+
130+ echo 'default ipxe-prod.lkrn' >> pxelinux.cfg/default
131+ ```
128132
129133You can get out of shell by entering exit or just closing the window.
130134
0 commit comments