This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
linux:general:network [2018/03/19 15:39] – lunetikk | linux:general:network [2021/08/30 22:42] – lunetikk | ||
---|---|---|---|
Line 8: | Line 8: | ||
| 25 | SMTP | | | 25 | SMTP | | ||
| 80 | HTTP | | | 80 | HTTP | | ||
- | | 111 + 2049 | TCP/UDP - NFS | | + | | 111 + 2049 | TCP/UDP - NFS | |
+ | | 123 | UDP - NTP | ||
| 137 + 139 + 445 | TCP/UDP - SMB/ | | 137 + 139 + 445 | TCP/UDP - SMB/ | ||
| 443 | HTTPS | | | 443 | HTTPS | | ||
Line 69: | Line 70: | ||
http_proxy=127.0.0.1: | http_proxy=127.0.0.1: | ||
https_proxy=127.0.0.1: | https_proxy=127.0.0.1: | ||
+ | http_proxy=http:// | ||
+ | https_proxy=https:// | ||
</ | </ | ||
Line 77: | Line 80: | ||
</ | </ | ||
- | ==== Change your IP (Ubuntu) ==== | + | ==== Change your IP (Ubuntu |
Edit / | Edit / | ||
Line 100: | Line 103: | ||
< | < | ||
ifdown eth0 && ifup eth0 | ifdown eth0 && ifup eth0 | ||
+ | </ | ||
+ | |||
+ | ==== Change your IP (Ubuntu > 16) ==== | ||
+ | |||
+ | Edit / | ||
+ | < | ||
+ | sudo vi / | ||
+ | </ | ||
+ | and add | ||
+ | < | ||
+ | network: | ||
+ | version: 2 | ||
+ | renderer: networkd | ||
+ | ethernets: | ||
+ | ens3: | ||
+ | dhcp4: no | ||
+ | addresses: | ||
+ | - 10.0.0.2/8 | ||
+ | gateway4: 10.0.0.1 | ||
+ | nameservers: | ||
+ | addresses: [8.8.8.8, 8.8.4.4] | ||
+ | </ | ||
+ | Apply the new IP config | ||
+ | < | ||
+ | sudo netplan apply | ||
</ | </ | ||
Line 169: | Line 197: | ||
</ | </ | ||
+ | ==== Tools to monitor traffic ==== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | < | ||
+ | |||
+ | #bmon - shows multiple interfaces at once | ||
+ | apt-get install bmon | ||
+ | |||
+ | #tcptrack - Tells how much bandwidth is being used and also what protocol (service/ | ||
+ | apt-get install tcptrack | ||
+ | |||
+ | #nload - Separated view for down and upload | ||
+ | apt-get install nload | ||
+ | |||
+ | #iftop | ||
+ | apt-get install iftop | ||
+ | |||
+ | #ethstatus | ||
+ | apt-get install ethstatus | ||
+ | |||
+ | </ | ||
+ | bmon: {{: | ||
+ | |||
+ | tcptrack: {{: | ||
+ | |||
+ | nload: {{: | ||
+ | |||
+ | iftop: {{: | ||
+ | |||
+ | ethstatus: {{: | ||
==== Troubleshooting ==== | ==== Troubleshooting ==== | ||
Line 194: | Line 253: | ||
\\ | \\ | ||
\\ | \\ | ||
- | ~~DISCUSSION~~ | + | ~~DISCUSSION:closed~~ |