+1-323-999-6135 blog@hegars.com

Cisco IEEE Bridging

    ! controller E1 0/0/0 clock source internal channel-group 0 timeslots 1-31 ! controller E1 0/1/0 channel-group 0 timeslots 1-31 ! ip ssh version 2 ! ! ! bridge irb ! ! ! ! interface FastEthernet0/0 no ip address duplex auto speed auto bridge-group 1 ! interface...

ISDN Info

E1 G.703 https://www.itu.int/rec/T-REC-G.703/en 32 * 64K Time Slots free running G.704 https://www.itu.int/rec/T-REC-G.704/en 32 * 64K Time Slots, 0,15 are D channels and 1-14,16-31 are B channels in...

Cisco Dual DSL

Bridging 2 ISP dsl services to VLANS using bridge groups ! bridge irb ! interface FastEthernet0/0 no ip address duplex auto speed auto ! interface FastEthernet0/0.100 encapsulation dot1Q 100 ip address 192.168.1.1 255.255.255.0 ! interface FastEthernet0/0.101...

Cisco Digital Modems Module

    Its all about Channelized E1….. And the Modem CSM MICA (Modem ISDN channel aggregation)   c3725 isdn switch-type primary-net5 ! controller E1 1/0 pri-group timeslots 1-31 ! interface Serial1/0:15 no ip address encapsulation hdlc isdn switch-type primary-net5...

Cisco ISDN

! card type e1 1 ! network-clock-participate E1 1/0 ! isdn switch-type primary-net5 ! controller E1 1/0 framing NO-CRC4 pri-group timeslots 1-31 ! ! interface Serial1/0:15 no ip address encapsulation hdlc isdn switch-type primary-net5 isdn incoming-voice voice !...

EBTABLES

Layer2 Based NAT   broute.sh #/bin/bash ETH0MAC=11:11:11:11:11:11 VM1IP=2.2.2.2 VM1MAC=22:22:22:FF:FF:FF VNET0MAC=22:22:22:00:00:00 VM2IP=3.3.3.3 VM2MAC=33:33:33:FF:FF:FF VNET1MAC=33:33:33:00:00:00 #br0 Link encap:Ethernet HWaddr 11:11:11:11:11:11 #eth0 Link...

VPN Windows Split Tunnel

Running a VPN server via RADIUS that can not send framed routes so had to manually setup split tunnels, so in windows 10 Powershell ROUTE add Set-VpnConnection -ConnectionName "vpn.host.net" -SplitTunneling 1 Add-VpnConnectionRoute -ConnectionName "vpn.host.net"...

Console Plotting

Using GNUPLOT (feedgnuplot for pipe loading) and SHUF (for sample data) to generate graphs on a console shuf -r -n 50 -i 0-9 | feedgnuplot --lines --terminal 'dumb 160,40' --exit Links GNUPLOT...

FFMPEG

Pull in an iso and stream it ffmpeg -re -i MWC-D01.iso -map 0:1 -map 0:4 -c:v:1 copy -c:a:0 libmp3lame -b:a:4 192k -f mpegts udp://192.168.254.1:1234 fmpeg -re \ -i MWC-D01.iso \ -map 0:1 -map 0:4 \ -c:v:1 copy \ -c:a:0 libmp3lame -b:a:4 192k \ -f mpegts...

TSHARK DNS queries

using tshark to looks at DNS queries over the wire tshark -f "udp port 53" -Y "dns.qry.type == 255 and dns.flags.response == 0" https://www.ietf.org/rfc/rfc1035.txt tshark -f "udp port 53" -Y "dns.qry.type ==1 and dns.flags.response == 0" tshark -f "udp port 53" -Y...

TCPDUMP websites

Get websites being access over the wire. #!/bin/bash tcpdump -A -s 10240 ‘tcp port 80 and (((ip[2:2] – ((ip[0]&0xf)2)) != 0)’ | egrep –line-buffered “^……..(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: ” | sed -r...

TCPDUMP MySQL

This script is to monitor SQL transactions over the wire. #!/bin/bash #this script used monitor mysql network traffic.echo sql tcpdump -i eno1 -s 0 -l -w - dst port 3306 | strings | perl -e ' while() { chomp; next if /^[^ ]+[ ]*$/;...