Skip to content

Instantly share code, notes, and snippets.

View scamp's full-sized avatar

Oleksandr Martsyniuk scamp

View GitHub Profile
input {
tcp {
port => 514
type => syslog
}
udp {
port => 514
type => syslog
}
}
# jan/20/2023 16:48:13 by RouterOS 7.7
# software id = T3P8-NGTH
#
# model = RBD53iG-5HacD2HnD
# serial number = E7290E159FF9
/ipv6 address
add address=::1 from-pool=campus-v6 interface=bridge
/ipv6 dhcp-client
add add-default-route=yes interface=ether1 pool-name=campus-v6 request=prefix
/ipv6 dhcp-server
@scamp
scamp / blocklist.conf
Created February 26, 2022 12:32
sasha@bras1:~$ cat /etc/unbound/unbound.conf.d/blacklist.conf
local-zone: "1cent.in" static
local-zone: "1cent.tv" static
local-zone: "2.telek.me" static
local-zone: "39dw.only4.tv" static
local-zone: "akciatv.org" static
local-zone: "akciatv.ru" static
local-zone: "antifriz.tv" static
local-zone: "bethoven.antifriz.tv" static
local-zone: "billingtv.net" static
local-zone: "cardsharingserver.tv" static
192.168.147.1 Non-routable local internet address
4.2.2.1 a.resolvers.level3.net
4.2.2.3 c.resolvers.level3.net
4.2.2.4 d.resolvers.level3.net
4.2.2.6 f.resolvers.level3.net
8.8.4.4 google-public-dns-b.google.com
8.8.8.8 google-public-dns-a.google.com
62.94.0.41 ns3.eutelia.it
62.134.11.4 dns-muc.de.ignite.net
62.233.128.17 szafir.futuro.pl
@scamp
scamp / netgraph_race_fix.patch
Created April 10, 2014 14:08
Fix for locking model used in netgraph. Backported for FreeBSD-8.3-STABLE from HEAD.
--- /usr/src/sys/netgraph/ng_base.c 2013/07/15 01:32:55
+++ /usr/src/sys/netgraph/ng_base.c 2013/10/15 17:44:35
@@ -74,7 +74,12 @@
MODULE_VERSION(netgraph, NG_ABI_VERSION);
/* Mutex to protect topology events. */
-static struct mtx ng_topo_mtx;
+static struct rwlock ng_topo_lock;
+#define TOPOLOGY_RLOCK() rw_rlock(&ng_topo_lock)
+#define TOPOLOGY_RUNLOCK() rw_runlock(&ng_topo_lock)
@scamp
scamp / em_v6.9.1_sysctl_interrupt_rate.patch
Last active October 13, 2015 19:58
Sysctl hw.em.max_interrupt_rate control added.
--- sys/dev/e1000/if_em.h.orig 2012-12-08 11:55:00.000000000 +0200
+++ sys/dev/e1000/if_em.h 2012-12-08 11:58:18.000000000 +0200
@@ -461,6 +461,9 @@
int prev_ticks;
#define NUM_STAT_MAX 5
struct net_stats stat_max[NUM_STAT_MAX];
+
+ /* Maximum interrupt rate */
+ int max_interrupt_rate;
};