Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- super, merci beaucoup !
- la voici
- [code]firewall {
- all-ping enable
- broadcast-ping disable
- group {
- address-group SSH-clients {
- address 82.64.194.117
- address 193.168.147.39
- description ""
- }
- address-group Xymon-clients {
- address 82.64.194.117
- address 193.168.147.39
- address 195.154.217.217
- description ""
- }
- ipv6-address-group SSH-clients-IPv6 {
- description "Trusted IPv6 clients"
- ipv6-address 2a07:abc4::1:10a
- ipv6-address 2a01:e0a:512:75f0::/64
- ipv6-address 2a01:cb08:91d:3200::/64
- ipv6-address 2a01:e0a:5f2:34f0::/64
- }
- ipv6-address-group Xymon-clients-IPv6 {
- description "Xymon clients"
- ipv6-address 2a07:abc4::1:10a
- ipv6-address 2a01:e0a:512:75f0::/64
- }
- ipv6-network-group AWS_Lambda-IPv6 {
- description "IPv6 pool used by AWS Lambda in subnet subnet-0a2c4021dc001905e"
- ipv6-network 2a05:d012:27c:3810::/64
- }
- ipv6-network-group Free_Mobile-IPv6 {
- description "Prefix /64 Free Mobile"
- ipv6-network 2a0d:e487:12f:f29b::/64
- }
- ipv6-network-group Lognes-IPv6 {
- description "Reseau makelofine a Lognes"
- ipv6-network 2a01:e0a:512:75f0::/64
- }
- ipv6-network-group Paul {
- description "Reseau Paul @Monthry"
- ipv6-network 2a01:cb08:91d:3200::/64
- }
- ipv6-network-group Siouz-IPv6 {
- description "Freebox Siouz"
- ipv6-network 2a01:e0a:5f2:34f0::/64
- }
- }
- ipv6-name WANv6_IN {
- default-action drop
- description "WAN inbound traffic forwarded to LAN"
- enable-default-log
- rule 10 {
- action accept
- description "Allow established/related sessions"
- log disable
- state {
- established enable
- related enable
- }
- }
- rule 20 {
- action drop
- description "Drop invalid state"
- log disable
- state {
- invalid enable
- }
- }
- rule 25 {
- action accept
- description "Allow ICMPv6"
- log disable
- protocol icmpv6
- }
- rule 30 {
- action accept
- description "SSH to walter from trusted clients"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 22
- }
- log disable
- protocol tcp
- source {
- group {
- ipv6-address-group SSH-clients-IPv6
- }
- }
- }
- rule 40 {
- action accept
- description "Xymon to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 1984
- }
- log disable
- protocol tcp
- source {
- group {
- ipv6-address-group Xymon-clients-IPv6
- }
- }
- }
- rule 42 {
- action accept
- description "Xymon to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 1984
- }
- log disable
- protocol tcp
- source {
- group {
- ipv6-network-group Lognes-IPv6
- }
- }
- }
- rule 50 {
- action accept
- description "HTTP/HTTPS to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 80,443
- }
- log disable
- protocol tcp
- state {
- established enable
- new enable
- }
- }
- rule 60 {
- action accept
- description "DNS to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 53
- }
- log disable
- protocol tcp_udp
- state {
- established enable
- new enable
- }
- }
- rule 70 {
- action reject
- description "IMAP/POP3 to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 110,143,993,995
- }
- log disable
- protocol tcp
- }
- rule 80 {
- action accept
- description "SMTP to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 25,465,587
- }
- log disable
- protocol tcp
- }
- rule 90 {
- action accept
- description "Plex to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 32400
- }
- log disable
- protocol tcp
- }
- }
- ipv6-name wan_local-6 {
- default-action drop
- description "WAN inbound traffic to the router"
- enable-default-log
- rule 10 {
- action accept
- description "Allow established/related sessions"
- log disable
- state {
- established enable
- related enable
- }
- }
- rule 15 {
- action accept
- description "Allow DHCPv6"
- destination {
- port 546
- }
- log disable
- protocol udp
- source {
- port 547
- }
- }
- rule 20 {
- action drop
- description "Drop invalid state"
- log disable
- state {
- invalid enable
- }
- }
- rule 25 {
- action accept
- description "Allow ICMPv6"
- log disable
- protocol icmpv6
- }
- rule 30 {
- action accept
- description "SSH to walter from trusted clients"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 22
- }
- log disable
- protocol tcp
- source {
- group {
- ipv6-address-group SSH-clients-IPv6
- }
- }
- }
- rule 40 {
- action accept
- description "Xymon to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 1984
- }
- log disable
- protocol tcp
- source {
- group {
- ipv6-address-group Xymon-clients-IPv6
- }
- }
- }
- rule 42 {
- action accept
- description "Xymon to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 1984
- }
- log disable
- protocol tcp
- source {
- group {
- ipv6-network-group Lognes-IPv6
- }
- }
- }
- rule 50 {
- action accept
- description "HTTP/HTTPS to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 80,443
- }
- log disable
- protocol tcp
- state {
- established enable
- new enable
- }
- }
- rule 60 {
- action accept
- description "DNS to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 53
- }
- log disable
- protocol tcp_udp
- }
- rule 70 {
- action reject
- description "IMAP/POP3 to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 110,143,993,995
- }
- log disable
- protocol tcp
- }
- rule 80 {
- action accept
- description "SMTP to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 25,465,587
- }
- log disable
- protocol tcp
- }
- rule 90 {
- action accept
- description "Plex to walter"
- destination {
- address 2a01:0e0a:0348:bda0:1337::2
- port 32400
- }
- log disable
- protocol tcp
- }
- }
- ipv6-receive-redirects disable
- ipv6-src-route disable
- ip-src-route disable
- log-martians enable
- name SSH {
- default-action accept
- description ""
- rule 1 {
- action accept
- destination {
- address 82.65.79.87
- port 22
- }
- log disable
- protocol tcp
- source {
- group {
- address-group SSH-clients
- }
- }
- state {
- established enable
- invalid disable
- new enable
- related disable
- }
- }
- }
- name WAN_IN {
- default-action drop
- description "WAN to internal"
- rule 10 {
- action accept
- description "Allow established/related"
- log disable
- state {
- established enable
- related enable
- }
- }
- rule 20 {
- action drop
- description "Drop invalid state"
- log disable
- state {
- invalid enable
- }
- }
- }
- name WAN_LOCAL {
- default-action drop
- description "WAN to router"
- rule 10 {
- action accept
- description "Allow established/related"
- log disable
- state {
- established enable
- related enable
- }
- }
- rule 20 {
- action drop
- description "Drop invalid state"
- log disable
- state {
- invalid enable
- }
- }
- }
- name Xymon {
- default-action accept
- description ""
- rule 1 {
- action accept
- destination {
- address 82.65.79.87
- port 1984
- }
- log enable
- protocol tcp
- source {
- group {
- address-group Xymon-clients
- }
- }
- state {
- established enable
- invalid disable
- new enable
- related disable
- }
- }
- }
- receive-redirects disable
- send-redirects enable
- source-validation disable
- syn-cookies enable
- }
- interfaces {
- ethernet eth0 {
- address dhcp
- description Internet
- dhcpv6-pd {
- pd 0 {
- interface switch0 {
- host-address ::1
- service slaac
- }
- prefix-length /64
- }
- rapid-commit enable
- }
- duplex auto
- firewall {
- in {
- ipv6-name WANv6_IN
- }
- local {
- ipv6-name wan_local-6
- name WAN_LOCAL
- }
- }
- ipv6 {
- address {
- }
- dup-addr-detect-transmits 1
- }
- speed auto
- }
- ethernet eth1 {
- description Local
- duplex auto
- speed auto
- }
- ethernet eth2 {
- description Local
- duplex auto
- speed auto
- }
- ethernet eth3 {
- description Local
- duplex auto
- speed auto
- }
- ethernet eth4 {
- description Local
- duplex auto
- poe {
- output off
- }
- speed auto
- }
- loopback lo {
- }
- switch switch0 {
- address 192.168.1.254/24
- address 2a01:e0a:348:bda0::1/64
- address fe80::7:1/64
- description Local
- firewall {
- out {
- ipv6-name wan_local-6
- }
- }
- ipv6 {
- dup-addr-detect-transmits 1
- router-advert {
- cur-hop-limit 64
- link-mtu 0
- managed-flag false
- max-interval 600
- other-config-flag true
- prefix 2a01:e0a:348:bda0::/64 {
- autonomous-flag true
- on-link-flag true
- valid-lifetime 2592000
- }
- radvd-options "RDNSS 2a01:e0a:348:bda0:1337::2 2a07:abc4::1:10a {};"
- reachable-time 0
- retrans-timer 0
- send-advert true
- }
- }
- mtu 1500
- switch-port {
- interface eth1 {
- }
- interface eth2 {
- }
- interface eth3 {
- }
- interface eth4 {
- }
- vlan-aware disable
- }
- }
- }
- port-forward {
- auto-firewall enable
- hairpin-nat enable
- lan-interface switch0
- rule 1 {
- description SMTP
- forward-to {
- address 192.168.1.7
- }
- original-port 25
- protocol tcp
- }
- rule 2 {
- description HTTP
- forward-to {
- address 192.168.1.7
- }
- original-port 80
- protocol tcp
- }
- rule 3 {
- description HTTPS
- forward-to {
- address 192.168.1.7
- }
- original-port 443
- protocol tcp
- }
- rule 4 {
- description SMTPS
- forward-to {
- address 192.168.1.7
- }
- original-port 465
- protocol tcp
- }
- rule 5 {
- description SMTPS2
- forward-to {
- address 192.168.1.7
- }
- original-port 587
- protocol tcp
- }
- rule 6 {
- description DNS
- forward-to {
- address 192.168.1.7
- }
- original-port 53
- protocol tcp_udp
- }
- wan-interface eth0
- }
- protocols {
- static {
- route6 ::/0 {
- next-hop fe80::72fc:8fff:fe68:2c36 {
- interface eth0
- }
- }
- }
- }
- service {
- dhcp-server {
- disabled false
- hostfile-update disable
- shared-network-name LAN {
- authoritative enable
- disable
- subnet 192.168.1.0/24 {
- default-router 192.168.1.254
- dns-server 192.168.1.254
- lease 86400
- start 192.168.1.38 {
- stop 192.168.1.243
- }
- }
- }
- static-arp disable
- use-dnsmasq disable
- }
- dhcpv6-server {
- shared-network-name ipv6_dns {
- name-server 2a01:e0a:348:bda0:1337::2
- name-server 2a07:abc4::1:10a
- subnet 2a01:e0a:348:bda0::/64 {
- domain-search lan
- domain-search makelofine.org
- domain-search noisy.makelofine.org
- domain-search lognes.makelofine.org
- name-server 2a01:e0a:348:bda0:1337::2
- name-server 2a07:abc4::1:10a
- }
- }
- }
- dns {
- }
- gui {
- http-port 80
- https-port 443
- older-ciphers disable
- }
- nat {
- rule 1 {
- description SSH
- destination {
- address 82.65.79.87
- port 22
- }
- inbound-interface eth0
- inside-address {
- address 192.168.1.7
- port 22
- }
- log disable
- protocol tcp
- source {
- group {
- address-group SSH-clients
- }
- }
- type destination
- }
- rule 2 {
- description Xymon
- destination {
- address 82.65.79.87
- port 1984
- }
- inbound-interface eth0
- inside-address {
- address 192.168.1.7
- port 1984
- }
- log disable
- protocol tcp
- source {
- group {
- address-group Xymon-clients
- }
- }
- type destination
- }
- rule 5010 {
- description "masquerade for WAN"
- log disable
- outbound-interface eth0
- type masquerade
- }
- }
- ssh {
- port 22
- protocol-version v2
- }
- ubnt-discover {
- disable
- }
- unms {
- disable
- }
- }
- system {
- analytics-handler {
- send-analytics-report false
- }
- conntrack {
- expect-table-size 2048
- hash-size 32768
- modules {
- rtsp {
- enable
- }
- }
- table-size 262144
- }
- crash-handler {
- send-crash-report false
- }
- host-name imperator
- login {
- user doctor {
- authentication {
- encrypted-password $5$tTuNeDevinerasJamais!
- plaintext-password ""
- public-keys user@pc3 {
- key AAAAB3NzaC1yc2EAAAADAQABAAABAQCE+VT/ahDoAkyRwVTNwOsEyroL4aOybPLNstWM7H0YyNz6vsTwu4m7TQFSU/wOqJ8ZHnnDjSFFKckRSixQnTBYn/2IWoOPxlkDY+cZg7C9gY2tyPsCvXi8xV0X8nSGiVPVL4HMPZoXjgzcMtXeJiK1bsfykY9GkhHjwv3LTMwEhLIVxtn2YX+b5mpuKCp6Y9D/7I0vexAB+gDFt59AC6ujuXhlYPxjLqU9AtOXBFhw6/ByvKybCkZ6VgpXFwaRRPML6DMxLan0GFro6cn2HdEI/A4/HDIDLrtCraqaBn9mRmJN7BS2wLE4OsLKGkFY8kJlsREuwnfFKi4vXuks+3cl
- type ssh-rsa
- }
- public-keys user@pc1 {
- key AAAAC3NzaC1lZDI1NTE5AAAAIFChfYqLEZjAuGBq/VmzWXRGAwm6XlzSNNqmpq6nlmZw
- type ssh-ed25519
- }
- public-keys user@pc2 {
- key AAAAB3NzaC1yc2EAAAADAQABAAABAQDA2/ExYTids7TCLs2VaXxfNxd7GT6nGFO3bmH32tuBh2wuHvLgPwoFXsnjGp3wJQd/0cMhv8fkd/2luX2rXBvNo0rL+ZkA8iqYFXOri1f1BGnM+QYUjPOglr1SYLnqIkQBV6rS044EedLaDOSqCfXeRAKUXUgbE9Xh0iFOoGaho6GnMR05i9tmMi7MINPY1U+6OvMXqtjgn7aSA0JE2p9AxECRjpCg1k/ijFdZ4+E52wOTpJYdgsgGgEw46DHC834je4/cnR2ehHTA0OUvUMbFZNrYBC9e7SI5wDZ2F2fBDxXuOx0ar+H3SNdoc0V8VRjbhaXONQDZaYeCHf2LlKTN
- type ssh-rsa
- }
- }
- full-name doctor
- level admin
- }
- }
- name-server 192.168.1.7
- name-server 193.168.147.39
- name-server 212.27.40.240
- name-server 2a01:e0a:348:bda1::1337:2
- name-server 2001:41d0:404:200::c4d
- ntp {
- server 0.ubnt.pool.ntp.org {
- }
- server 1.ubnt.pool.ntp.org {
- }
- server 2.ubnt.pool.ntp.org {
- }
- server 3.ubnt.pool.ntp.org {
- }
- }
- offload {
- hwnat enable
- }
- package {
- repository stretch {
- components "main contrib non-free"
- distribution stretch
- password ""
- url http://archive.debian.org/debian
- username ""
- }
- }
- syslog {
- global {
- facility all {
- level notice
- }
- facility protocols {
- level debug
- }
- }
- host 192.168.1.7 {
- facility all {
- level warning
- }
- }
- }
- time-zone Europe/Paris
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement