recentpopularlog in

kme : networking   345

« earlier  
networking - Why the default eth0 interface is down by default on CentOS? - Unix & Linux Stack Exchange
Edit /etc/sysconfig/network-scripts/ifcfg-$IFNAME. Change the ONBOOT line's value to yes.
centos  centos6  networking  sysadmin  solution 
20 days ago by kme
How to check if port is in use on Linux or Unix - nixCraft
<code class="language-bash">sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
sudo lsof -i:22 ## see a specific port such as 22 ##
sudo nmap -sTU -O IP-address-Here</code>
linux  bash  sysadmin  networking  solution 
october 2019 by kme
OpenConnect VPN client. | https://www.infradead.org/
On Linux, it's possible to create its tun device in advance. For example:
<code class="language-bash">
# ip tuntap add vpn0 mode tun user dwmw2
</code>

This creates a device vpn0 which can be opened by user dwmw2 who can pass traffic to/from it without needing any elevated privileges. You can now tell OpenConnect to use that device by adding "-i vpn0" to its command-line arguments. Note that the /dev/net/tun device node should be readable and writeable by everyone. (Some distributions misconfigure that, so if it isn't world-writeable then please file a bug against your distribution.)
vpn  cisco  anyconnect  linux  networking  sysadmin  maybesolution 
july 2019 by kme
facerecog/auto-ssh-tunnel: Automatic SSH Tunnel is a Python script which can be used to create a Reverse SSH Tunnel between multiple computers running Linux and a centralized server. Property of Facerecog Asia Pte. Ltd. and 26 Factorial | https://github.c
Automatic SSH Tunnel is a Python script which can be used to create a Reverse SSH Tunnel between multiple computers running Linux and a centralized server. Property of Facerecog Asia Pte. Ltd. and 26 Factorial - facerecog/auto-ssh-tunnel
ssh  tunneling  tunnelmanager  networking  python  utility 
may 2019 by kme
networking - Windows 8 'net use' no longer works - Super User | https://superuser.com/
This seems promising. A batch script set to run on logon (Group Policy -> User Configuration -> Windows Settings -> Scripts (Logon/Logoff)) seems to work OK when this registry key is enabled.

<code class="language-powershell">
New-ItemProperty -Path "registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLinkedConnections" -Value 1 -PropertyType "DWord"
</code>

As an alternative--which doesn't require enabling sketchy registry settings--you can run the login script as a Scheduled Task, as the 'Users' group, for each user on login, using Task Manager.
windows  drivemapping  networkdrives  networking  sysadmin  loginscripts  solution 
february 2019 by kme
windows 7 - Setting up VirtualBox guest for PXE boot - Super User | https://superuser.com/
Solution: make sure the VM is using bridged networking (to the physical host adapter, 'eno1' or whatever) and install the Oracle secret-sauce Extension Pack.

Older releases here: https://www.virtualbox.org/wiki/Download_Old_Builds_5_1
virtualbox  virtualization  networking  pxe  pxeboot  secretsauce  nonfree  fuckina  solution 
january 2019 by kme
virtualbox.org • View topic - PXE boot from bridged adaptor | https://forums.virtualbox.org/
Lots of good suggestions here, but all that was *really* necessary was to bridge the physical adapter ('eno1' for me) and install the non-free Extension Pack.

The bundled PXE ROM is not sufficient to boot the Windows workstation installation environment.

See also: https://superuser.com/a/448743/73744
pxe  pxeboot  networking  virtualbox  windows  win7  virtualization  sortof  solution 
january 2019 by kme
openssl - how to extract issuer certificate from other certificate - Stack Overflow | https://stackoverflow.com/
This might work *if* the certificate embeds a URL for the issuer. This wasn't the case for my organization.
openssl  ssl  ca  certs  issuer  commandline  sysadmin  networking  sortof  solution 
january 2019 by kme
how am i supposed to remember ipv6 addresses? - Open Forum | DSLReports Forums | https://www.dslreports.com/
Short answer: local name servers or /etc/hosts. Or copy-paste.
On a broader note, I am always amazed at the comment 'How can I remember' when dealing with computers. Excuse me but isn't that what computers are for? Is the concept of making a file and then copy/paste foreign to most people? I don't have to remember anything not that I could remember my 32 digit login's and passwords, as an example. As for IPV6, for the vast majority of home users, it's irrelevant.
ipv6  ip  internet  homenetworking  networking  sysadmin  butwhy  answered 
january 2019 by kme
networking - Is there any benefit to using IPv6 on my home network? - Super User | https://superuser.com/
Just about sums it up:
But with IPv4 you can't give all of your kitchen appliances billions of IP addresses!
ipv6  homenetworking  networking  butwhy 
january 2019 by kme
ubuntu - Using dnsmasq with NetworkManager - Super User | https://superuser.com/
This didn't fix anything for me, but https://stackoverflow.com/a/24189767/785213 did --that is, set DOCKER_OPTS in /etc/default/docker to the corporate DNS servers, instead of the defaults which are, like, Google's DNS servers or something. Then 'sudo systemctl restart docker'.
If this is right I think that, as you say, the only solution to the problem is to disable the NM-drive dnsmasq by commenting out the line
<code class="language-bash">
dns=dnsmasq
</code>

in the file /etc/NetworkManager/NetworkManager.conf and install the "standard" dnsmasq and then configure it via its standard /etc/dnsmasq.conf configuration file.
dns  docker  dnsmasq  networking  ubuntu  annoyance 
january 2019 by kme
Comment #33 : Bug #959037 : Bugs : network-manager package : Ubuntu | https://bugs.launchpad.net/
I think that there is a clash of civilizations here: the Debian way (modular components that just work together in any combination allowed by package dependencies) versus the RedHat way (big daemons with limited options that own subsystems).
networkmanager  dnsmasq  networking  debian  ubuntu 
january 2019 by kme
16.04 - /usr/sbin/fanctl: No such file or directory in /etc/network/if-up.d/ubuntu-fan" - Ask Ubuntu | https://askubuntu.com/
Not sure if this fixed anything (or broke Docker), but at least `ifup` works now without bombing with error code 127.
I had this happen after I installed and later removed Docker. The Docker daemon depends on FAN so it gets installed, but if you don't purge it upon removal the startup script in /etc/network/if-up.d/ sticks around. Remove it with apt remove --purge ubuntu-fan.
docker  networking  ubuntu  elementary  errormessage  maybesolution 
december 2018 by kme
UNC links - MediaWiki | https://www.mediawiki.org/
<code class="language-wikitext">[file:///{{#replace:{{#replace:{{{1}}}| |%20}}|\|/}} {{#if:{{{2|}}}|{{{2}}}}}]</code>
mediawiki  windows  networking  cifs  unc  fileprotocol  customization  essential  movein  sysadmin 
march 2018 by kme
How to connect MySQL database using Python+SQLAlchemy remotely? - Stack Overflow | https://stackoverflow.com/
n my setup (I'm using mysql-python) just using 127.0.0.1 instead of localhost in the MySQL SQLAlchemy url works. The complete url I'm using exactly for that scenario (tunnel with local port 3307) is:

mysql:/user:passwd@127.0.0.1:3307/

I'm using SQLAlchemy 1.0.5, but I guess that doesn't matter too much...
python  mysql  dba  networking  sqlalchemy  errormessage  annoyance  solution 
february 2018 by kme
How To Disable IPv6 In CentOS 7 | Unixmen
<code class="language-bash">
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
</code>
centos  sysctl  ipv6  networking  sysadmin  linux  troubleshooting  solution 
december 2017 by kme
wireless - connect to wifi from command line - Ask Ubuntu
I think you want to keep using managed interface (by NetworkManager). nmcli is a command‐line tool for controlling NetworkManager.

To see list of saved connections, use (<SavedWiFiConn>)

nmcli c

To see list of available WiFi hotspots (<WiFiSSID>)

nmcli d wifi list

or:

sudo iwlist wlan0 scanning

To see list of interfaces (<WifiInterface>)

ifconfig -a
networkmanager  commandline  linux  sysadmin  networking  wifi  maybesolution 
december 2017 by kme
networking - PXE boot with Virtualbox - Server Fault
The PXEboot server that VirtualBox's (default) NAT network interface communicates with is built-in, that's why the filename it looks for matches the name of the VM.

I set up a bridged adapter (br0) using the instructions here (https://wiki.ubuntu.com/QemuPxe) and told the VirtualBox VM to use that instead. Then everything worked fine.
After clarification, not using VirtualBox's built-in PXE feature at all seems the way to go. Instead, assign a secondary NIC with "host only" or "internal" networking to server and client, and bind the DHCP server to listen at the second interface. Do not use Intel cards for the second interface: PXE Booting Virtualbox guests in internal networking mode?

Answer to VirtualBox NAT and PXE:

vmname.pxe contains the code your VM runs after downloading it, the so called NBP (Network Bootstrap Program)
virtualbox  networking  pxeboot  tftp  sortof  solution 
october 2017 by kme
networking - How do I use /etc/network/interfaces instead of network-manager - Ask Ubuntu
This seems to also be the case with elementaryOS if you add a bridged adapter that uses the default (eth0 or eno1 or whatever) adapter.

23
down vote
accepted


If you manually manage your network card in /etc/network/interfaces , network manger will not manage it , it will state "Not Managed"
elementaryos  linux  debian  networking  networkmanager  bridgedethernet  bridge  solution 
october 2017 by kme
python - Flask raises `Address already in use` running with Gunicorn - Stack Overflow
You're using Gunicorn, so you don't want to use the Flask dev server. But you're calling app.run unconditionally. Gunicorn starts, binds the address, then imports your app, which calls app.run and tries to start it's own server. But the address is already in use by Gunicorn.

Move app.run into a guard block:

if __name__ == '__main__':
app.run()

Or preferably remove it completely, since you should be using the flask command to run the dev server, as described in the docs.
flask  errormessage  networking  webmaster  solution 
june 2017 by kme
Using network locations (Mac OS X v10.6 and later) - Apple Support
If you want to disable a specific network port for this location, highlight the port, then click the Action Gear. Then, select "Make Service Inactive." Repeat this step for each port you want to disable in the new location.
networking  mac  osx  macos  networklocations  solution 
july 2016 by kme
[SOLVED] Virtualbox won't forward port 8000
Indeed, by default the Django webserver only listens on 127.0.0.1. You can configure it to listen on all IP addresses by specifying the IP address 0.0.0.0. That is, you should launch the webserver with this command

Code:

python manage.py runserver 0.0.0.0:8000

To be clear, this is the solution to my problem.
virtualbox  python  django  networking 
may 2016 by kme
« earlier      
per page:    204080120160

Copy this bookmark:





to read