=== patrick_ is now known as patrick | ||
=== patrick is now known as Guest1232 | ||
PeGaSuS | hi. is there a way to make my machine accept outgoing/incoming connections in any IPv6 address of my subnet without having to specify it on the netplan config? | 13:43 |
---|---|---|
ravage | i think the short answer here is no | 13:44 |
ravage | if the IP is not bound to your system it cant interact with it | 13:44 |
PeGaSuS | I'd have to use something like https://github.com/blechschmidt/freebind, probably? | 13:45 |
ravage | yes that can work | 13:45 |
PeGaSuS | thanks! | 13:46 |
PeGaSuS | I know that this is insecure, but I have a user that can execute sudo commands without needing the password. but when I try `echo "# Something" >> /etc/netplan/50-cloud-init.yaml` I get a "-bash: /etc/netplan/50-cloud-init.yaml: Permission denied" | 14:47 |
patdk | heh? linux has supported subscribing to a whole subnet of ip's for a very very long time | 15:54 |
patdk | ip route add local 2001:db0::/32 dev lo | 15:56 |
PeGaSuS | how does that works on Ubuntu + Netplan? | 16:37 |
patdk | you just add a route in netplan | 17:38 |
oerheks | some reading and examples https://github.com/canonical/netplan/tree/main/examples | 17:48 |
oerheks | https://people.ubuntu.com/~slyon/netplan-docs/examples/ | 17:49 |
moo3 | PeGaSuS: try - `sudo bash -c "echo \#something >> /etc/netplan/..."` | 18:01 |
moo3 | but also you should probably use yq for that | 18:02 |
patdk | not sure why you need a comp[lex example | 18:04 |
patdk | https://dpaste.com/2ASCZS9QQ | 18:08 |
patdk | might need to be scope: link | 18:10 |
frickler | this is a common alternative that doesn't need extra quoting: echo something | sudo tee /etc/netplan/50-cloud-init.yaml | 18:11 |
frickler | (for the "permission denied" issue) | 18:12 |
patdk | both ways work for me atleast | 18:12 |
=== sdeziel_ is now known as sdeziel | ||
=== oerheks1 is now known as oerheks |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!