Re: Openbsd VMM with VLAN
Thank you David Gwynne Irshad > On 2 Jun 2021, at 3:00 AM, David Gwynne wrote: > > Hi Irshad, > > Assuming I understand your layout correctly, you should be able to use > hostname.if configurations files like the following: > > $ cat hostname.em0: > up > > $ cat hostname.vlan20 > description "Trusted (L2+L3)" > vnetid 20 parent em0 > inet aa.bb.cc.dd 255.255.255.0 > up > > $ cat hostname.vlan10: > description "IoT (L2)" > vnetid 10 parent em0 > up > > $ cat hostname.veb10 > description "IoT bridge" > add vlan10 > add vport10 > up > > $ cat hostname.vport10 > description "IoT (L3)" > inet ee.bb.cc.dd 255.255.255.0 > up > > With the above, vlan10 on the wire will be connected using veb10 to the IP > stack on your firewall on vport10. To have the virtual machine also plug into > that VLAN 10 Ethernet segment, you can use veb10 as your "uplink" switch > interface in vmm.conf. > > dlg > >> On 31 May 2021, at 05:44, Irshad wrote: >> >> Hi all >> >> >> i have two Openbsd box Running Like Below one As Firewall and Another one As >> VMM >> With two VLAN's >> >> OPENBSD_FIREWALL >> >> IoT_AP (VLAN10) . -VLAN10 >> |--OpenWRT-em0---| ---pf --em1--Internet >> ||- VLAN20 >> trusted_AP(VLAN20) >> this Works fine >> >> >> Another Separate OpenBSD Box for VM >> >> openbsd(vmGuest)---vether0---openbsdHost——NAT—em0--OpenBSD_FW--Internet >> >> is it possible Add openbsd(vmguest) to VLAN10 network >> >> >> this is MY vm config [HomeAssistance] >> >> >> >> switch "uplink" { >> interface bridge1 >> } >> vm "hass" { >> disable >> owner irshad >> memory 2G >> disk "/home/irshad/iso/disk.qcow2" >> >> interface { >> switch "uplink" >> lladdr fe:e1:bb:01:01:01 >> } >> } >> >> >> >
Re: openrsync manpage error
Hi Originally I was trying sync usb drive with openbsd box I was getting same error Below is eg: I have two files bar and baz in home dir and dest is destination directory While trying to sync I get error And if I try ‘rsync’ as command I get error not found Iam in 6.9 release with syspatch updated irshad:/home/irshad/test# ls bar baz dest irshad:/home/irshad/test# openrsync -t bar baz dest/ openrsync: error: unexpected end of file irshad:/home/irshad/test# openrsync -t bar baz root@192.168.1.1:bar root@192.168.1.1's password: ash: rsync: not found openrsync: error: unexpected end of file irshad:/home/irshad/test# rsync ksh: rsync: not found irshad:/home/irshad/test# uname -a OpenBSD openbsd.local 6.9 GENERIC.MP#473 amd64 irshad:/home/irshad/test# > On 14-May-2021, at 12:02 PM, Claudio Jeker wrote: > > On Fri, May 14, 2021 at 12:44:45AM +0300, Irshad Sulaiman wrote: >> Hi >> >> I have modified error in openrsync(1) manpage in Example section isn’t >> that ‘openrsync -t' instead of 'rsync -t ‘ >> And without --rsync-path= it gives an following error 'openrsync: error: >> unexpected end of file’ > > I did try all three examples and they do work for me without adding > --rsync-path=. On which command did you get the unexpected result. > Can you share the exact way to reproduce this issue? > >> Apologize if Iam wrong >> >> Thanks >> Irshad >> >> >> >> Index: rsync.1 >> === >> RCS file: /cvs/src/usr.bin/rsync/rsync.1,v >> retrieving revision 1.24 >> diff -u -p -r1.24 rsync.1 >> --- rsync.1 31 Mar 2021 20:36:05 - 1.24 >> +++ rsync.1 13 May 2021 21:25:57 - >> @@ -234,7 +234,7 @@ with the local >> and >> .Pa ../src/baz : >> .Pp >> -.Dl % rsync -t ../src/bar ../src/baz host:dest >> +.Dl % openrsync -t --rsync-path=openrsync ../src/bar ../src/baz host:dest >> .Pp >> To update the out-of-date local files >> .Pa bar >> @@ -245,7 +245,7 @@ with the remote files >> and >> .Pa host:src/baz : >> .Pp >> -.Dl % rsync -t host:src/bar :src/baz \&. >> +.Dl % openrsync -t --rsync-path=openrsync host:src/bar :src/baz \&. >> .Pp >> To update the out-of-date local files >> .Pa ../dest/bar >> @@ -256,7 +256,7 @@ with >> and >> .Pa baz : >> .Pp >> -.Dl % rsync -t bar baz ../dest >> +.Dl % openrsync -t --rsync-path=openrsync bar baz ../dest >> .\" .Sh DIAGNOSTICS >> .Sh SEE ALSO >> .Xr ssh 1 >> > > -- > :wq Claudio
openrsync manpage error
Hi I have modified error in openrsync(1) manpage in Example section isn’t that ‘openrsync -t' instead of 'rsync -t ‘ And without --rsync-path= it gives an following error 'openrsync: error: unexpected end of file’ Apologize if Iam wrong Thanks Irshad Index: rsync.1 === RCS file: /cvs/src/usr.bin/rsync/rsync.1,v retrieving revision 1.24 diff -u -p -r1.24 rsync.1 --- rsync.1 31 Mar 2021 20:36:05 - 1.24 +++ rsync.1 13 May 2021 21:25:57 - @@ -234,7 +234,7 @@ with the local and .Pa ../src/baz : .Pp -.Dl % rsync -t ../src/bar ../src/baz host:dest +.Dl % openrsync -t --rsync-path=openrsync ../src/bar ../src/baz host:dest .Pp To update the out-of-date local files .Pa bar @@ -245,7 +245,7 @@ with the remote files and .Pa host:src/baz : .Pp -.Dl % rsync -t host:src/bar :src/baz \&. +.Dl % openrsync -t --rsync-path=openrsync host:src/bar :src/baz \&. .Pp To update the out-of-date local files .Pa ../dest/bar @@ -256,7 +256,7 @@ with and .Pa baz : .Pp -.Dl % rsync -t bar baz ../dest +.Dl % openrsync -t --rsync-path=openrsync bar baz ../dest .\" .Sh DIAGNOSTICS .Sh SEE ALSO .Xr ssh 1
Curious about errata patches
Hi everybody Just to know about errata patches : how openbsd developers Generates errata patches Like , I know (diff -upf ) generates diff How you ppl generate patches like below , is there any tool or scripts to do that OpenBSD 6.9 errata 001, May 4, 2021: vmd guests can trigger excessive log messages on the host by sending certain network packets. Apply by doing: signify -Vep /etc/signify/openbsd-69-base.pub -x 001_vmd.patch.sig \ -m - | (cd /usr/src && patch -p0)
Re: Openbsd 6.9 Default gateway
Thank you You are right Irshad > On 8 May 2021, at 11:55 AM, Stuart Henderson wrote: > > On 2021-05-07, Irshad Sulaiman wrote: >> Hi >>How to set only one default gateway if I have multiple interface , one is >> in DHCP and other in Static ip >> I have set /etc/mygate 192.168.100.1 and hostname.em0 (DHCP) and >> hostname.iwn0 (static 192.168.100.163 255.255.255.0) > > Sounds like you want to request an address by DHCP, but ignore the gateway > handed out by the DHCP server; "ignore routers;" in dhclient.conf should > do the trick. > >
Re: Openbsd 6.9 Default gateway
Both in different Network , Just added route to hostname.if with -priority lower than other interface , it worked Thank you > On 08-May-2021, at 5:08 AM, Daniel Jakots wrote: > > On Sat, 8 May 2021 02:37:41 +0300, Irshad Sulaiman > wrote: > >> Thank you for the reply >> >> >> I could do by >> Delete and adding route with route command manually >> But is there any better way to do this > > If you used the same network both on wired and wireless, you could use > a trunk(4) in failover mode for a transparent transition. Check > "Trunking Your Wireless Adapter" in > https://www.openbsd.org/faq/faq6.html > > Cheers, > Daniel
Re: Openbsd 6.9 Default gateway
Thank you for the reply I could do by Delete and adding route with route command manually But is there any better way to do this > On 08-May-2021, at 2:28 AM, wrote: > >> How to set hostname.iwn0 as default gateway > > Probably there is a better solution. Maybe someone with more > knowledge of netstart can help. I'd try my luck with pf and create > a natting rule to check for traffic leaving em0 that's not - for > example - 192.168.1.0/24: > > pass out on em0 from $int_net to ! $int_net received-on em0 nat-to iwn0 > > Didn't have the time to check this rule though.
Openbsd 6.9 Default gateway
Hi How to set only one default gateway if I have multiple interface , one is in DHCP and other in Static ip I have set /etc/mygate 192.168.100.1 and hostname.em0 (DHCP) and hostname.iwn0 (static 192.168.100.163 255.255.255.0) But when I sh /etc/netstart it sets multiple gateway with following Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface default192.168.1.1UGS0 37 - 8 em0 default192.168.100.1 UGS00 -12 iwn0 Only iwn0 have internet and I cannot connect to internet How to set hostname.iwn0 as default gateway With multiple default gateway I cannot ping outside Appreciate
[no subject]
Hi is it possible to change from passphrase to key disk in bictl (8) , or do I need to recreate whole RAID again Thank you Etchers