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/01/03 13:19] – lunetikk | linux:general:network [2019/04/16 14:18] – lunetikk | ||
---|---|---|---|
Line 8: | Line 8: | ||
| 25 | SMTP | | | 25 | SMTP | | ||
| 80 | HTTP | | | 80 | HTTP | | ||
- | | 111 + 2049 | NFS | | + | | 111 + 2049 | |
- | | 137 + 139 | TCP/UDP - SMB/ | + | | 123 | UDP - NTP |
+ | | 137 + 139 + 445 | ||
| 443 | HTTPS | | | 443 | HTTPS | | ||
| 8080 | Proxy | | | 8080 | Proxy | | ||
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 ==== | + | ==== Change your IP (Ubuntu) |
Edit / | Edit / | ||
Line 98: | Line 101: | ||
/ | / | ||
</ | </ | ||
+ | < | ||
+ | ifdown eth0 && ifup eth0 | ||
+ | </ | ||
+ | |||
+ | ==== Change your IP (SLES11/12) ==== | ||
+ | |||
+ | Edit / | ||
+ | < | ||
+ | sudo vi / | ||
+ | </ | ||
+ | and add | ||
+ | < | ||
+ | DEVICE=' | ||
+ | BOOTPROTO=' | ||
+ | STARTMODE=' | ||
+ | USERCONTROL=' | ||
+ | BROADCAST='' | ||
+ | ETHTOOL_OPTIONS='' | ||
+ | IPADDR=' | ||
+ | MTU='' | ||
+ | NAME='' | ||
+ | NETMASK=' | ||
+ | NETWORK='' | ||
+ | REMOTE_IPADDR='' | ||
+ | </ | ||
+ | |||
+ | Edit gateway / | ||
+ | < | ||
+ | sudo vi / | ||
+ | </ | ||
+ | and add | ||
+ | < | ||
+ | default 10.0.0.1 - eth0 | ||
+ | #default 10.0.0.1 - - | ||
+ | </ | ||
+ | |||
+ | Restart your networkinterface | ||
+ | |||
+ | SLES11 | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | SLES12 | ||
< | < | ||
ifdown eth0 && ifup eth0 | ifdown eth0 && ifup eth0 | ||
Line 124: | Line 171: | ||
hostname –F / | hostname –F / | ||
</ | </ | ||
+ | |||
+ | ==== 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 | ||
+ | |||
+ | </ | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
==== Troubleshooting ==== | ==== Troubleshooting ==== | ||
Line 150: | Line 225: | ||
\\ | \\ | ||
\\ | \\ | ||
- | ~~DISCUSSION~~ | + | ~~DISCUSSION:closed~~ |