<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Networking on Documentation</title><link>https://docs.daper.io/networking/index.html</link><description>Recent content in Networking on Documentation</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://docs.daper.io/networking/index.xml" rel="self" type="application/rss+xml"/><item><title>BGP</title><link>https://docs.daper.io/networking/bgp/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/networking/bgp/index.html</guid><description>Resources https://networklessons.com/bgp/internal-bgp-border-gateway-protocol-explained https://martybugs.net/wireless/openwrt/quagga.cgi https://www.quagga.net/docs/docs-info.html https://www.thinknetsec.com/asa-route-based-vpn-using-bgp/ https://www.psychz.net/client/kb/en/quagga-routing--install-configure-and-setup-bgp.html https://ixnfo.com/en/setting-up-bgp-in-quagga.html https://www.quagga.net/docs/quagga.html</description></item><item><title>SNMP</title><link>https://docs.daper.io/networking/snmp/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/networking/snmp/index.html</guid><description>snmpwalk https://linux.die.net/man/1/snmpwalk
snmpwalk \ -v 3 \ # Version of the protocol -c private \ # Community string (v3) -a SHA \ # Authentication method -A &amp;lt;password&amp;gt; \ # Authentication string -l authPriv \ # Authentication level -x AES \ # Encryption method -X &amp;lt;password&amp;gt; \ # Encryption string -u &amp;lt;sec-user&amp;gt; \ # Security user 192.168.3.1:161 # Ip of the device</description></item><item><title>OpenWRT</title><link>https://docs.daper.io/networking/openwrt/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/networking/openwrt/index.html</guid><description>Update &amp;amp; Upgrade All Packages opkg update \ &amp;amp;&amp;amp; opkg list-upgradable \ | cut -d&amp;#39; &amp;#39; -f1 \ | xargs opkg upgrade Expose metrics endpoint with node-exporter opkg install prometheus-node-exporter-lua sed -i &amp;#34;s/listen_interface &amp;#39;loopback&amp;#39;/listen_interface &amp;#39;wan&amp;#39;/&amp;#34; /etc/config/prometheus-node-exporter-lua /etc/init.d/prometheus-node-exporter-lua start /etc/init.d/prometheus-node-exporter-lua enable Then curl the device address like:
curl http://openwrt.lan:9100/metrics</description></item><item><title>Mikrotik - Public IP Script</title><link>https://docs.daper.io/networking/mikrotik-public-ip/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/networking/mikrotik-public-ip/index.html</guid><description>Introduction I have a NAT rule like the following.
5 ;;; auto-updated jul/23/2020 12:49:15 chain=dstnat action=dst-nat to-addresses=192.168.3.108 to-ports=80 protocol=tcp dst-address=185.227.212.85 in-interface=vlan832-Internet-VOIP dst-port=80 log=no log-prefix=&amp;#34;&amp;#34; And I wanted to track too how much my public IP changes. Also to trigger few scripts on other machines to update other things like public DNS records.
Mikrotik Script name=&amp;#34;public-ip&amp;#34; owner=&amp;#34;admin&amp;#34; policy=read,write source= :local inetinterface &amp;#34;vlan832-Internet-VOIP&amp;#34; :local currentIP [/ip address get [find interface=&amp;#34;$inetinterface&amp;#34; disabled=no] address] :for i from=( [:len $currentIP] - 1) to=0 do={ :if ( [:pick $currentIP $i] = &amp;#34;/&amp;#34;) do={ :set currentIP [:pick $currentIP 0 $i] } } :local rulesToChange [/ip firewall nat find where to-addresses=192.</description></item></channel></rss>