My original idea was to put a script in $HOME/bin which would start tap interfaces on demand.
That ran into snags when the echo 1 >/proc commands would give me permission errors.
Then I had the idea -make everything permanent and throw it all into /etc/rc.local.
Not the most elegant solution -but at least now I have six guarenteed tap interfaces to work with!
here's the code to put in /etc/rc.local (warning, make sure your distro supports /etc/rc.local..many newer ones may not);
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/wlan0/proxy_arp
for x in {0..5}
do
tunctl -u random
sudo ip link set tap$x up
echo 1 > /proc/sys/net/ipv4/conf/tap$x/proxy_arp
route add -host 192.168.200.2$x dev tap$x
done
exit 0
===
Rebooted, works for me! So far, at least.
My next problem to work out involves figuring out how to kill headless qemu sessions (x86 doesn't give any output when done with -nographic).
Subscribe to:
Post Comments (Atom)
automating zfs mounts -a quick and very dirty script
#!/bin/sh for x in obj xsrc src pkgsrc pkgsrc/distfiles pkgsrc/packages pkg do zfs create ext/$x zfs set mountpoint=/usr/$x ext/$x ...
-
Two days after I decided to test the -currents: --- iso_image --- mkdir -p -m 0755 /usr/src/obj/releasedir/images /usr/src/obj/tooldir.Net...
-
KVM commandline (on host): screen -S qemu06 /usr/local/bin/qemu-system-x86_64 -enable-kvm -cpu host -smp 4,cores=4,maxcpus=8 -m 2048 -net ...
-
make iso-image started at: Thu Feb 25 20:50:56 AKST 2021 make iso-image finished at: Thu Feb 25 20:51:03 AKST 2021 ===> Successful make ...
No comments:
Post a Comment