On Fri, 7 Feb 2025 01:09:09 +0100
Odd Martin Baanrud wrote:
> Hello,
>
> I have got access to some static IP’s via VPN using WireGuard.
> The provider gave me config files for use with wg-quick(8) from the
> WireGuard-tools package. It works in linux.
> However, I want to test it wit OpenBSD’s i
Odd Martin Baanrud wrote:
> I can of corse use wg-quick, but I don’t see how to run it via rc(8).
>
> Regards, Martin.
You can install wireguard-tools from ports as you mentioned. Then use
!command syntax in your hostname.if to shell out to wg-quick. E.g. your
/etc/hostname.wg0 conte
Check ifconfig(8) man page, there is section about wireguard and the available
options.
ifconfig.if does not list them
side note, they have to be in one line in hostname file.
G
On 07/02/2025 02:09, Odd Martin Baanrud wrote:
> Hello,
>
> I have got access to some static IP’s via VPN using Wire
On Fri, 7 Feb 2025 01:09:09 +0100
Odd Martin Baanrud wrote:
> Hello,
>
> I have got access to some static IP*s via VPN using WireGuard.
> The provider gave me config files for use with wg-quick(8) from the
> WireGuard-tools package.
> It works in linux.
> However, I want to test it wit OpenBSD*
On Fri, Feb 07, 2025 at 01:09:09AM +0100, Odd Martin Baanrud wrote:
> However, I want to test it wit OpenBSD’s integrated wg(4) driver.
Here is a jinja template from Ansible role that creates hostname.wg0 on some
machine
somewhere in my network:
inet {{ client_ipv4 }} {{ client_ipv4_netmask }}
i
Hello,
I have got access to some static IP’s via VPN using WireGuard.
The provider gave me config files for use with wg-quick(8) from the
WireGuard-tools package.
It works in linux.
However, I want to test it wit OpenBSD’s integrated wg(4) driver.
I’ve read the manual, but I can’t see which optio
Is this a trick question?
Mine has 1.
On Wed, Sep 4, 2024 at 11:50 PM wrote:
> What should my hostname.if file look like.
> Is there a minimum amount of settings I need?
>
>
On Thu, Sep 05, 2024 at 02:39:38AM -0400, openbsd_fr...@mail2tor.com wrote:
> What should my hostname.if file look like.
> Is there a minimum amount of settings I need?
The absolute minimum would be something like
up
but more usefully, for a client system in a wired network, assumin
What should my hostname.if file look like.
Is there a minimum amount of settings I need?
On Mar 25 15:52:38, zeni...@proton.me wrote:
> Thanks for the quick response. It looks like hotplugd was what I was precisely
> looking for. As usual, my usecase was inside the manpage :).
> As a final note, I tried to do it with the resume script but it did not seem
> to
> work. I guess it was b
Thanks for the quick response. It looks like hotplugd was what I was precisely
looking for. As usual, my usecase was inside the manpage :).
As a final note, I tried to do it with the resume script but it did not seem to
work. I guess it was because the attachment takes a delay from the execution
On Mon, Mar 25, 2024 at 12:13:06PM +, ZenitDS wrote:
> Hello,
> On boot the urtwn0 interface is configured as expected, but after
> I sleep using 'zzz', it gets resetted and I have to manually run
> 'sh /etc/netstart' with root priviliges to reconfigure the interface.
> I tried using /etc/apm/r
Hello,
On boot the urtwn0 interface is configured as expected, but after
I sleep using 'zzz', it gets resetted and I have to manually run
'sh /etc/netstart' with root priviliges to reconfigure the interface.
I tried using /etc/apm/resume, but running it there made no difference.
I have seen that so
On 03/12/2020 13:20, Steve Fairhead wrote:
There's also this, which I wrote to help a student (my daughter)
understand netmasks and CIDR notation:
http://www.fivetrees.com/netmasks/netmasks.php
It's kinda fun to watch the bit patterns move around...
I can see from my logs that this has prove
Mike Coddington writes:
> There was a useful tool that someone posted on misc a while back called
> netcalc. I think this is its website:
>
https://jamsek.dev/posts/2019/Sep/21/ipv4-and-ipv6-cidr-subnet-calculator/
> Check it out if you want to get a better grasp on CIDR notation.
There's als
Chris Bennett writes:
> So, what happens with 104.149.1.112? Does anybody get to actually use
> it? Or is it just a placeholder?
Here is my understanding. View the address 104.149.1.112 in binary
format:
01101000.10010101.0001.0111
The /28 netmask is:
...00
On 2020-12-03, Greg Thomas wrote:
> Nope, as mentioned it's the network address, for every subnet you're going
> to get a network address and a broadcast address, and your usable IPs in
> between.
When it's used as an ethernet-type network, yes. If it's routed to you via
another link (for example
On Wed, Dec 02, 2020 at 10:51:34PM -0800, Greg Thomas wrote:
> Nope, as mentioned it's the network address, for every subnet you're going
> to get a network address and a broadcast address, and your usable IPs in
> between.
>
OK, that's very clear the way you just said it. That explains really
wel
Nope, as mentioned it's the network address, for every subnet you're going
to get a network address and a broadcast address, and your usable IPs in
between.
On Wed, Dec 2, 2020 at 10:45 PM Chris Bennett <
cpb_m...@bennettconstruction.us> wrote:
> On Wed, Dec 02, 2020 at 11:26:15PM -0500, Allan St
On Wed, Dec 02, 2020 at 11:26:15PM -0500, Allan Streib wrote:
> Mike Coddington writes:
>
> > There was a useful tool that someone posted on misc a while back called
> > netcalc. I think this is its website:
> > https://jamsek.dev/posts/2019/Sep/21/ipv4-and-ipv6-cidr-subnet-calculator/
> > Check
Mike Coddington writes:
> There was a useful tool that someone posted on misc a while back called
> netcalc. I think this is its website:
> https://jamsek.dev/posts/2019/Sep/21/ipv4-and-ipv6-cidr-subnet-calculator/
> Check it out if you want to get a better grasp on CIDR notation.
There is also
pages do?
> An example might help better to explain why aliases are used when
> changing network numbers. Is it a short term fix?
> Is there a downside to using aliases vs CIDR?
So, I'm not quite sure what you mean because in hostname.if the term
"alias" refers to giving
Hi,
after seeing a post here using CIDR, I re-read some manual pages.
I have been using aliases, but it looks like using CIDR is the preferred
method.
Could someone explain that a little better than the manual pages do?
An example might help better to explain why aliases are used when
changing netw
Hello everybody,
introducing this little ansible role to configure hostname.if(5) files.
comments are welcome
https://github.com/gred7/ansible-openbsd-interfaces-role.git
On 20.9.2019. 13:12, Stuart Henderson wrote:
> On 2019-09-20, Hrvoje Popovski wrote:
>> Hi all,
>>
>> if i have "alias" directive in hostname.if with dot-notation netmask and
>> networks are in 10/8 or 172.16/12 it seems i'm getting classless /8 or
>
On 2019-09-20, Hrvoje Popovski wrote:
> Hi all,
>
> if i have "alias" directive in hostname.if with dot-notation netmask and
> networks are in 10/8 or 172.16/12 it seems i'm getting classless /8 or
> /16 networks ...
hostname.if(5) format is weird and a bit annoyin
Hi all,
if i have "alias" directive in hostname.if with dot-notation netmask and
networks are in 10/8 or 172.16/12 it seems i'm getting classless /8 or
/16 networks ...
inet 192.168.42.1 255.255.255.0
alias 10.10.10.0 255.255.255.0
ix0: flags=8843 mtu 1500
inet 192.1
On Tue, Jun 19, 2018 at 11:30:42PM +0100, Stuart Henderson wrote:
>
> If powersave is enabled, you'll see "powersave on (XXms sleep)" on the
> ieee80211: [...] line.
>
> If powersave is disabled (which is the default), nothing special is printed.
>
Good to know, thank you.
Ken
On 2018/06/19 18:09, Ken M wrote:
> On Tue, Jun 19, 2018 at 04:53:21PM +, Stuart Henderson wrote:
> >
> > hostname.if(5) has this:
> >
> > "Any lines not matching these packed formats are passed directly to
> > ifconfig(8)."
> >
>
&g
On Tue, Jun 19, 2018 at 04:53:21PM +, Stuart Henderson wrote:
>
> hostname.if(5) has this:
>
> "Any lines not matching these packed formats are passed directly to
> ifconfig(8)."
>
After reading the manpage again for hostname.if last night I spotted the way i
On 2018-06-18, Ken M wrote:
> My thought was just to add the line
>
> -powersave
>
> in the file, just like I had added it to an iconfig commandline. Hostname.if
> man
> pages don't specify anything about it that I can see.
>
> Was my thought a stupid thought?
My thought was just to add the line
-powersave
in the file, just like I had added it to an iconfig commandline. Hostname.if man
pages don't specify anything about it that I can see.
Was my thought a stupid thought?
Ken
d 'rtsol' and 'inet6 autoconf' are
> "equivalent" as far as /etc/netstart is concerned.
>
> What's the preferred setting for SLAAC in hostname.if(5)?
"inet6 autoconf" is what you get if you choose the autoconf option
during install.
I wasn
" as far as /etc/netstart is concerned.
What's the preferred setting for SLAAC in hostname.if(5)?
+--+
Carlos
> Even adding "debug" keyword did not assure me
> whether the problem is with my password definition:
> wpakey s3cur3-as-#311, for illustration (was not sure
> if the '#' has to be escaped somehow); or somewhere
> else. Finally, it was the latter, but it took me a while
> to realize that.
.. or ma
Theo de Raadt wrote:
> > > As i said, my config with # in the password worked
> > > without any escaping or quoting needed.
> > >
> >
> > i understood from your mail that you'd had to escape it.
>
> that is correct.
...
now i'm jealous, i want to be able to read other
people's thoughts too.
> > As i said, my config with # in the password worked
> > without any escaping or quoting needed.
> >
>
> i understood from your mail that you'd had to escape it.
that is correct.
furthermore, some things don't have perfect escaping.
not everything is perfect.
caped somehow); or somewhere
> > > else. Finally, it was the latter, but it took me a while
> > > to realize that.
> > >
> > > Current hostname.if manpage is not absolutely clear:
> > >
> > > #Comments are allowed. Anything following
yword did not assure me
> > whether the problem is with my password definition:
> > wpakey s3cur3-as-#311, for illustration (was not sure
> > if the '#' has to be escaped somehow); or somewhere
> > else. Finally, it was the latter, but it took me a while
> > to re
gt; whether the problem is with my password definition:
> wpakey s3cur3-as-#311, for illustration (was not sure
> if the '#' has to be escaped somehow); or somewhere
> else. Finally, it was the latter, but it took me a while
> to realize that.
>
> Current hostname.if manpa
ot sure
if the '#' has to be escaped somehow); or somewhere
else. Finally, it was the latter, but it took me a while
to realize that.
Current hostname.if manpage is not absolutely clear:
#Comments are allowed. Anything following a comment
character is treated as a commen
2016-06-02 20:28 GMT+02:00 Otto Moerbeek :
> On Thu, Jun 02, 2016 at 08:08:19PM +0200, Frans Haarman wrote:
>
>> I got tired of typing hostname so came up with this little tweak. Now
>> atleast I have some tab completion.
>>
>> Maybe useful for some ? Do you have a differnt approach ?
>>
>> Regard
On Thu, Jun 02, 2016 at 08:08:19PM +0200, Frans Haarman wrote:
> I got tired of typing hostname so came up with this little tweak. Now
> atleast I have some tab completion.
>
> Maybe useful for some ? Do you have a differnt approach ?
>
> Regards,
> Frans
>
>
>
> # cd /etc/interface/
> # ls
I got tired of typing hostname so came up with this little tweak. Now
atleast I have some tab completion.
Maybe useful for some ? Do you have a differnt approach ?
Regards,
Frans
# cd /etc/interface/
# ls -la
total 12
drwxr-xr-x 2 root wheel 512 Jun 2 19:51 .
drwxr-xr-x 23 root wheel
On 07 May 2016, Stuart Henderson wrote:
> On 2016-05-06, Mark Carroll wrote:
(snip)
>> pf ... because it otherwise doesn't realize that 'self'
>> includes the address eventually assigned by PPP.
>
> Use "(self)" not "self".
Interesting! Thank you: I'd previously missed this part of the
pf.conf(5
On 2016-05-06, Mark Carroll wrote:
> On 06 May 2016, Duncan Patton a. Campbell wrote:
>
>> Is there any similar tag to access the addess assigned by dhcp?
>> What other mechanisms exist to update dynamic dns assignments?
>
> Could ifstated(8) help here? I've separately wondered if I ought to be
>
On Fri, May 06, 2016 at 04:35:47AM -0600, Duncan Patton a Campbell wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
>
> Back when the script tag was removed from dhclient.conf the
> functionality to do external commands was ostensibly moved
> into hostname.if
On Fri, May 06, 2016 at 06:21:00AM -0600, Duncan Patton a Campbell wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> On Fri, 06 May 2016 12:06:58 +0100
> Mark Carroll wrote:
>
> > On 06 May 2016, Duncan Patton a. Campbell wrote:
> >
> > > Is there any similar tag to access the adde
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
On Fri, 06 May 2016 12:06:58 +0100
Mark Carroll wrote:
> On 06 May 2016, Duncan Patton a. Campbell wrote:
>
> > Is there any similar tag to access the addess assigned by dhcp?
> > What other mechanisms exist to update dynamic dns assignments?
>
>
do external commands was ostensibly moved
> > into hostname.if via the
> >
> > !command mechanism.
> >
> > in man hostname.if it says
> >
> > "It is worth noting that ``\$if'' in a command
> > line will be replaced by the interface n
On 06 May 2016, Duncan Patton a. Campbell wrote:
> Is there any similar tag to access the addess assigned by dhcp?
> What other mechanisms exist to update dynamic dns assignments?
Could ifstated(8) help here? I've separately wondered if I ought to be
using it to kick pf because it otherwise doesn
On Fri, May 06, 2016 at 11:35:47AM BST, Duncan Patton a Campbell wrote:
>
> Back when the script tag was removed from dhclient.conf the
> functionality to do external commands was ostensibly moved
> into hostname.if via the
>
> !command mechanism.
>
> in man hostname
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Back when the script tag was removed from dhclient.conf the
functionality to do external commands was ostensibly moved
into hostname.if via the
!command mechanism.
in man hostname.if it says
"It is worth noting that ``\$if'
; identifiers/formatting around the network information would be required,
> > much like the ssh/config parameters.
> >
> > Net primary {
> > nwid primary
> > wpakey key
> > dhcp
> > }
> > Net secondary {
> > nwid secondary
> > w
e required,
> much like the ssh/config parameters.
>
> Net primary {
> nwid primary
> wpakey key
> dhcp
> }
> Net secondary {
> nwid secondary
> wpakey key
> dhcp
> }
>
>
> The manpage of hostname.if(5) does not specifically mention/allow
wid primary
> wpakey key
> dhcp
> }
> Net secondary {
> nwid secondary
> wpakey key
> dhcp
> }
>
>
> The manpage of hostname.if(5) does not specifically mention/allow for this.
>
>
>
> My work-around for this is to have all my locations/ap'
identifiers/formatting around the network information would be required,
much like the ssh/config parameters.
Net primary {
nwid primary
wpakey key
dhcp
}
Net secondary {
nwid secondary
wpakey key
dhcp
}
The manpage of hostname.if(5) does not specifically mention/allow for this.
My work
On 2013-06-07, Kenneth R Westerback wrote:
> On Thu, Jun 06, 2013 at 07:09:05PM -0400, gpon...@spamcop.net wrote:
>> I recently updated from 5.2 to 5.3 and one ethernet port got broken.
>> The port connected to a cable modem and was configured for DHCP.
>> With 5.3, the DHCP assigned address is ge
On Thu, Jun 06, 2013 at 07:09:05PM -0400, gpon...@spamcop.net wrote:
> I recently updated from 5.2 to 5.3 and one ethernet port got broken.
> The port connected to a cable modem and was configured for DHCP.
> With 5.3, the DHCP assigned address is getting lost when I add an
> alias.
Mixing dhcp an
I recently updated from 5.2 to 5.3 and one ethernet port got broken.
The port connected to a cable modem and was configured for DHCP. With
5.3, the DHCP assigned address is getting lost when I add an alias.
The alias and a route table addition give the LAN a way to communicate
with the mode
On Tue, Dec 25, 2012 at 11:50:04PM -0600, Maximo Pech wrote:
> Looking at the man page of hostname.if(5) I noticed that there isn't a
> FILES section.
>
> It may not be obvious to everyone that those files should be located in
> /etc.
>
just added a FILES to this page...
jmc
So... what do you think about this? I believe adding this could improve
documentation a bit, and it is not hard to do, just add two lines to the
man page, but maybe I'm missing something...
2012/12/25 Maximo Pech
> Looking at the man page of hostname.if(5) I noticed that there isn
Looking at the man page of hostname.if(5) I noticed that there isn't a
FILES section.
It may not be obvious to everyone that those files should be located in
/etc.
On 2012-08-30, Scott <8f27e...@gmail.com> wrote:
> vis-a-vis /etc/hostname.if, where the 'if' is em1 and is a real
> interface that is aggregating several VLANs (as em1 is connected to a
> Cisco L2 switch). Since the each of the VLAN interface has its own,
> and top
On 30-8-2012 23:30, Scott wrote:
> vis-a-vis /etc/hostname.if, where the 'if' is em1 and is a real
> interface that is aggregating several VLANs (as em1 is connected to a
> Cisco L2 switch). Since the each of the VLAN interface has its own,
> and topology relevant, IPV4 add
I am having trouble figuring out how I should configure a physical
interface and a carp virtual interface where the carp IP will serve as
a default route for hosts on the network and also hold some aliases
for server re-directs. From what I have seen the routes built at
startup "home" the route for
On 2011-05-15, Andreas Bartelt wrote:
> Hello,
>
> I'm able to use the following configuration for gif0 via ifconfig(8):
>
> # ifconfig gif0 inet6 tunnel 2002:db8::1 2002:db8::2
> # ifconfig gif0 192.168.1.1 192.168.1.2 netmask 255.255.255.0
>
> The following version of /etc/hostname.gif0 doesn't
On Sun, May 15, 2011 at 6:18 PM, Mark Felder wrote:
>
> On Sun, 15 May 2011 16:10:21 -0500, Andreas Bartelt
wrote:
>>
>> Is there a way to do this correctly via /etc/hostname.gif0 ?
>>
>> Best regards
>> Andreas
>>
>
> Not sure if this helps, but as far as I know this is the way you're supposed
t
On Sun, 15 May 2011 16:10:21 -0500, Andreas Bartelt
wrote:
Is there a way to do this correctly via /etc/hostname.gif0 ?
Best regards
Andreas
Not sure if this helps, but as far as I know this is the way you're
supposed to do it for a 6to4 tunnel:
Sanitized, but you'll get the point:
$
Hello,
I'm able to use the following configuration for gif0 via ifconfig(8):
# ifconfig gif0 inet6 tunnel 2002:db8::1 2002:db8::2
# ifconfig gif0 192.168.1.1 192.168.1.2 netmask 255.255.255.0
The following version of /etc/hostname.gif0 doesn't work:
# cat /etc/hostname.gif0
inet6 tunnel 2002:db
Penned by Stuart Henderson on 20100614 12:28.46, we have:
| On 2010-06-14, rh...@hushmail.com wrote:
| > Hello list,
| >
| > I'm looking to explicitly disable IPv6 on interfaces where it is
| > not used. This includes link local addresses.
| >
| > However, this :
| >
| > # cat /etc/hostname.em0
>Please try this diff.
>
>Index: netstart
>===
>
>RCS file: /cvs/src/etc/netstart,v
>retrieving revision 1.129
>diff -u -p -r1.129 netstart
>--- netstart 12 Jan 2010 07:43:41 - 1.129
>+++ netstart 14 Jun 2010 11:27:47 -000
>you can also pass extra options after "up"
>
>up -inet6
>
>>
Interesting. Well, I've already had one reply telling me to RTFM,
so perhaps I missed that little gem amongst all the text to be
enjoyed !
>> Please try this diff.
>>
>
>or this...
>
ack. done. worked. thanks again.
On Mon, Jun 14, 2010 at 12:28:46PM +0100, Stuart Henderson wrote:
> > # cat /etc/hostname.em0
> >
> > description "Some Port"
> > media 1000baseT
> > inet 172.16.176.166 255.255.255.252 NONE
> > -inet6
> > up
yo
On 2010-06-14, rh...@hushmail.com wrote:
> Hello list,
>
> I'm looking to explicitly disable IPv6 on interfaces where it is
> not used. This includes link local addresses.
>
> However, this :
>
> # cat /etc/hostname.em0
>
Hello list,
I'm looking to explicitly disable IPv6 on interfaces where it is
not used. This includes link local addresses.
However, this :
# cat /etc/hostname.em0
description "Some Port"
media 1000baseT
inet
Dear list,
While reading the manual I am having difficulty figuring out what the
appropriate hostname.if(5) entries should be for the following
(attempted) network setup:
+ Desired subnet: 172.24.10.0/24
+ HP ProCurve 2900-24G; providing (tagged) VLAN 10 on a physical port
+ bnx0 physical parent
On Wed, Dec 19, 2007 at 10:50:40PM +0100, Aurilien wrote:
> Hi,
>
> In hostname.if(5), two IPv6 addresses are used in a sample:
>
> inet6 alias fec0::1 64
> inet6 alias fec0::2 64 anycast
>
> The class fec0::/10 refers to the site-local prefix which has been
> d
Hi,
In hostname.if(5), two IPv6 addresses are used in a sample:
inet6 alias fec0::1 64
inet6 alias fec0::2 64 anycast
The class fec0::/10 refers to the site-local prefix which has been
deprecated in September 2004.
It's replaced by unique local addresses (fc00::/7 - RFC 4193). The s
There's no real bug here, it's just a misunderstanding.
If you setup "vlan1" with a vlan ID of 1 then OpenBSD will tag the packets
and expect them to be tagged.
Many switches expect vlan ID 1 to be untagged. To match this behavior
in OpenBSD, put the IP address on the parent interface and not on
On a completely unrelated note, there are known problems trying to tag
and utilize vlan1 (and present it to a BSD system). Google "seklecki
openbsd vlan".
It has to do with vlan 1 being the base vlan on trunk lines. It sucks
big time -- especially since Dell managed switched dont let you chang
On 2007/10/17 16:59, Frans Haarman wrote:
> Several times I have noticed my vlan not getting an IP when I use
> vlan 1 vlandev bge0 10.3.3.1 255.255.255.252 10.3.3.3
that's not the format shown in hostname.if(5).
Regular IPv4 network setup:
addr_family [alias] a
> Several times I have noticed my vlan not getting an IP when I use
> vlan 1 vlandev bge0 10.3.3.1 255.255.255.252 10.3.3.3
>
> It works everytime when I use:
> vlan 1 vlandev bge0
> 10.3.3.1 255.255.255.252 10.3.3.3
>
> It seems the interface must be created first before the assining IP can be
>
Hello,
Several times I have noticed my vlan not getting an IP when I use
vlan 1 vlandev bge0 10.3.3.1 255.255.255.252 10.3.3.3
It works everytime when I use:
vlan 1 vlandev bge0
10.3.3.1 255.255.255.252 10.3.3.3
It seems the interface must be created first before the assining IP can be
done ?
Th
It's a solaris/sunos thing
~BAS
On Fri, 2005-10-07 at 04:16, Stephan A. Rickauer wrote:
> Hello,
>
> can anyone tell me, whether the current naming convention of
> /etc/hostname.if is because of history of /etc/hostname (which has been
> extended) or if there are othe
Hello,
can anyone tell me, whether the current naming convention of
/etc/hostname.if is because of history of /etc/hostname (which has been
extended) or if there are other reasons. I am just curious, since it is
not very descriptive compared to /etc/mygate or /etc/myname.
As I say, I don
86 matches
Mail list logo