Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:network [2022/05/06 11:16] – tmadelinux:network [2026/06/24 15:38] (current) – [Test] tmade
Line 22: Line 22:
   route add -host hostname.domain gw 192.168.1.1   route add -host hostname.domain gw 192.168.1.1
   route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0   route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0
 +  route add -net 192.168.30.0 netmask 255.255.255.0 gw 192.168.30.2
   route add -host 192.168.0.1 dev ippp0   route add -host 192.168.0.1 dev ippp0
   route del -host 192.168.0.1   route del -host 192.168.0.1
Line 228: Line 229:
  
     nc -zv 192.168.0.20 25     nc -zv 192.168.0.20 25
 +or:
 +    lsof -Pi :8443                     #just local test  
  
-Or:+or:
  
   echo >/dev/tcp/localhost/25   echo >/dev/tcp/localhost/25
   echo >/dev/tcp/192.168.0.20/25   echo >/dev/tcp/192.168.0.20/25
- +   
-Additionally you can send Mails with it:+=== Mails with telnet ===
  
   ehlo testmail.org (Identify and demand SMTP-Modus)   ehlo testmail.org (Identify and demand SMTP-Modus)
Line 245: Line 248:
 Tip: Tip:
   reset (enables to send additionally emails)   reset (enables to send additionally emails)
 +  
 +===curl===
 +
 +  curl -v -H "Host: my-server.mydomain.com" 127.0.0.1:8443                     #test connectivity locally on host to simulate external access
 +  curl -v -H "Host: www.example.com" http://192.168.1.100                      #connect to 192.168.1.100 and rewrite/ manipulate hostheader to www.example.com
 +  curl -X GET https://my-domain.de:6443                                        #check if port is open
 +  curl --noproxy "*" http://localhost:8080                                     #check if port is open
 +  curl -v http://localhost:8080
 +  curl -v 1.2.3.4:80
      
 === jmeter (performance tests) === === jmeter (performance tests) ===
linux/network.1651828600.txt.gz · Last modified: by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki