<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hello everyone!</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Maybe this is not the right way to ask general user question (wrong mail list or something) so I'm sorry if made any problems.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">I have an urgent situation to make ad-hoc openvpn server from usb stick. Using grml for some time as a live cd and recovery tool I think this can be done with grml.</div><div style="font-family: 'times new roman', 'new
york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">So I have openvpn folder with all the necesary stuff, I formatted usb stick in following way:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">1. 3GB FAT32 wiht grml on it (grml2usb --bootoptions="nodhcp") /dev/sdb1</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">2 1GB ext3 with GRMLCFG label with scripts dir and inside it grml.sh script /dev/sdb5</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">grml.sh script is chmod 755, so executable and readable by everyone.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;
"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">basicaly the content of script is:</div><div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">#!/bin/bash</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">ip link set dev eth0 up</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">ip addr add dev eth0 192.168.1.253/24</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">ip route add default via 192.168.1.254</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">#now I wont to copy the folder to rw fs in order to write status files and logs so</font></div><div><font
class="Apple-style-span" face="'times new roman', 'new york', times, serif">cp -r /mnt/grmlcfg/openvpn /root/ </font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">cd /root/openvpn</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">openvpn --config /root/openvpn/server.conf &</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">echo 1 > /proc/sys/net/ipv4/ip_forward</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">#and to start ssh server to access the box</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">/etc/init.d/ssh start</font></div></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times,
serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">The debug output says that GRMLCFG is detected and mounted to /mnt/grmlcfg as ro</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">When booting finished, nothing has happened, as the script had not been run.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Can anybody shed some light on this please?</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Thank You.</div></div></body></html>