Skip to content

Commit

Permalink
add in the basic setup stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ifd3f committed Apr 9, 2024
1 parent 925e3c3 commit afdb4c5
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion netconf/asmodeus.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,36 @@

(define commands
`((delete protocols bgp)
(delete firewall)

; bunch of default crap
(set interfaces ethernet eth0 address "dhcp")
(set interfaces ethernet eth0 hw-id "52:54:00:40:30:53")
(set interfaces loopback lo)
(set protocols static route 0.0.0.0/0 next-hop 192.168.122.1)
(set service ntp allow-client address "0.0.0.0/0")
(set service ntp allow-client address "::/0")
(set service ntp server time1.vyos.net)
(set service ntp server time2.vyos.net)
(set service ntp server time3.vyos.net)
(set service ssh port "22")
(set system config-management commit-revisions "10000")
(set system conntrack modules ftp)
(set system conntrack modules h323)
(set system conntrack modules nfs)
(set system conntrack modules pptp)
(set system conntrack modules sip)
(set system conntrack modules sqlnet)
(set system conntrack modules tftp)
(set system console device ttyS0 speed "115200")
(set system host-name "asmodeus")
(set system login user vyos authentication public-keys chungus key "AAAAC3NzaC1lZDI1NTE5AAAAIEl4yuE1X4IqjBqt/enMyZFZKJQLxeq34BTCNqey59aZ")
(set system login user vyos authentication public-keys chungus type "ssh-ed25519")
(set system name-server "8.8.4.4")
(set system name-server "8.8.8.8")
(set system syslog global facility all level "info")
(set system syslog global facility local7 level "debug")

,(dn42/rpki)
,(dn42/bgp-setup)
,(dn42/bgp-group)
Expand All @@ -23,7 +53,10 @@
,(firewall/network-group "dn42-allowed-transit" dn42-allowed-transit-addrs)
,(firewall/network-group "ifd3f-dn42" ifd3f-dn42-addrs)
,(router-rules)
,(afall (dn42-tunnels-in))))
,(afall (dn42-tunnels-in))

; address for testing
(set interfaces wireguard wg4242422717 address "fd00:ca7:b015:7e57::7e57/64")))

(for ([s (commandtree->strings commands)])
(displayln s))

0 comments on commit afdb4c5

Please sign in to comment.