Compare commits
2 Commits
9bd886a3e0
...
3fda4d224f
Author | SHA1 | Date | |
---|---|---|---|
3fda4d224f | |||
65449fbf98 |
0
sisr1/tp04_scripts_admin/EOF
Normal file
0
sisr1/tp04_scripts_admin/EOF
Normal file
13
sisr1/tp05-Installation_proxy/dnsfwd.service
Normal file
13
sisr1/tp05-Installation_proxy/dnsfwd.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
|
||||
Description=execute /root/dnsfwd.sh
|
||||
|
||||
After=default.target
|
||||
|
||||
[Service]
|
||||
|
||||
ExecStart=bash /root/dnsfwd.sh
|
||||
|
||||
[Install]
|
||||
|
||||
WantedBy=default.target
|
11
sisr1/tp05-Installation_proxy/dnsfwd.sh
Normal file
11
sisr1/tp05-Installation_proxy/dnsfwd.sh
Normal file
@ -0,0 +1,11 @@
|
||||
!/bin/bash
|
||||
echo "1" > /proc/sys/net/ipv4/ip_forward
|
||||
nft add table dnsfwd
|
||||
nft add chain dnsfwd prerouting {type nat hook prerouting priority 0 \; }
|
||||
nft add chain dnsfwd postrouting {type nat hook postrouting priority 0 \; }
|
||||
nft add rule dnsfwd postrouting tcp dport 53 masquerade
|
||||
nft add rule dnsfwd postrouting udp dport 53 masquerade
|
||||
nft add rule dnsfwd prerouting tcp dport 53 masquerade
|
||||
nft add rule dnsfwd prerouting udp dport 53 masquerade
|
||||
nft add rule dnsfwd prerouting ct state established,related accept
|
||||
nft add rule dnsfwd postrouting ct state established,related accept
|
9155
sisr1/tp05-Installation_proxy/squid/squid.conf
Normal file
9155
sisr1/tp05-Installation_proxy/squid/squid.conf
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user