Categories
Linux

Trace Route for an IP

Traceroute command

traceroute 8.8.8.8

IP Route command

ip route get 8.8.8.8

Other commands

ip route list
Categories
Networking

List TCP Connections on my computer

List Interfaces

sudo tcpdump -D

Filter Parameters

  • host
  • dst
  • src
  • port

Interfaces

sudo tcpdump -i any
sudo tcpdump -i any -c 10
sudo tcpdump -i any -c5 -nn
ValueFlag TypeDescription
SSYNConnection Start
FFINConnection Finish
PPUSHData push
RRSTConnection reset
.ACKAcknowledgement

Capture ICMP protocol

sudo tcpdump -i any -c5 icmp

Limit using host filter

sudo tcpdump -i any -c5 -nn host x.x.x.x

Limit using the port filter

sudo tcpdump -i any -c5 -nn port 80

Limit using the src filter

sudo tcpdump -i any -c5 -nn src x.x.x.x

Limit using the dest filter

sudo tcpdump -i any -c5 -nn dst x.x.x.x

Limit using multiple filters

sudo tcpdump -i any -c5 -nn src x.x.x.x and port 80
Categories
Networking

MikroTik basic terminal commands

Show walled-garden IP

ip hotspot walled-garden ip print

Categories
Networking

Can’t ping Juniper SRX

Assign the interface to the security zone

#set security zones security-zone untrust interfaces ge-0/0/0

Enable ping in the security zone

#set security zones security-zone host-inbound-traffic system-services ping
#commit check
#commit
Categories
Networking

Juniper SRX Install Software

Initial check

user@host> request system snapshot
user@host> request system snapshot media internal

Installing image

user@host> request system software add [package location]/[package name] reboot
user@host>request system software add "ftp://test.jnpr.net/pub/junos/7.5R2.8/jinstall-7.5R2.8-domestic-signed.tgz reboot
user@host>request system software add /var/tmp/7.5R2.8/jinstall-7.5R2.8-domestic-signed.tgz reboot

Other options

user@host>request system software add /var/tmp/7.5R2.8/jinstall-7.5R2.8-domestic-signed.tgz no-validate no-copy reboot

Installing step by step

user@host>file copy ftp://username:prompt@ftp.hostname.net/filename  /var/tmp/
user@host> request system software add /var/tmp/jinstall-8.x-package-name-signed.tgz
user@host> request system reboot

Primary and backup copy to be the same

user@host> request system snapshot slice alternate