Subversion Repositories ALCASAR

Rev

Rev 2861 | Rev 2867 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2861 Rev 2864
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-conf.sh 2861 2020-10-04 20:41:06Z rexy $
2
# $Id: alcasar-conf.sh 2864 2020-10-18 09:06:17Z rexy $
3
 
3
 
4
# alcasar-conf.sh
4
# alcasar-conf.sh
5
# by REXY
5
# by REXY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 285... Line 285...
285
                if [ $PUBLIC_IP_MASK == "dhcp" ]
285
                if [ $PUBLIC_IP_MASK == "dhcp" ]
286
                then
286
                then
287
                        cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-$EXTIF
287
                        cat <<EOF > /etc/sysconfig/network-scripts/ifcfg-$EXTIF
288
DEVICE=$EXTIF
288
DEVICE=$EXTIF
289
BOOTPROTO=dhcp
289
BOOTPROTO=dhcp
290
DNS1=127.0.0.1
290
DNS1=$DNS1
291
PEERDNS=no
291
PEERDNS=no
292
RESOLV_MODS=yes
292
RESOLV_MODS=yes
293
ONBOOT=yes
293
ONBOOT=yes
294
METRIC=10
294
METRIC=10
295
MII_NOT_SUPPORTED=yes
295
MII_NOT_SUPPORTED=yes
Line 305... Line 305...
305
DEVICE=$EXTIF
305
DEVICE=$EXTIF
306
BOOTPROTO=static
306
BOOTPROTO=static
307
IPADDR=$PUBLIC_IP
307
IPADDR=$PUBLIC_IP
308
NETMASK=$PUBLIC_NETMASK
308
NETMASK=$PUBLIC_NETMASK
309
GATEWAY=$PUBLIC_GATEWAY
309
GATEWAY=$PUBLIC_GATEWAY
310
DNS1=127.0.0.1
310
DNS1=$DNS1
311
RESOLV_MODS=yes
311
RESOLV_MODS=yes
312
ONBOOT=yes
312
ONBOOT=yes
313
METRIC=10
313
METRIC=10
314
MII_NOT_SUPPORTED=yes
314
MII_NOT_SUPPORTED=yes
315
IPV6INIT=no
315
IPV6INIT=no
Line 387... Line 387...
387
server:
387
server:
388
        interface: 127.0.0.1@53
388
        interface: 127.0.0.1@53
389
        access-control-view: 127.0.0.1/8 lo
389
        access-control-view: 127.0.0.1/8 lo
390
view:
390
view:
391
        name: "lo"
391
        name: "lo"
392
        local-zone: "$DOMAIN" static
392
        local-data: "$HOSTNAME A 127.0.0.1"
393
        local-data: "$HOSTNAME.$DOMAIN A 127.0.0.1"
393
        local-data: "$HOSTNAME.$DOMAIN A 127.0.0.1"
-
 
394
        local-data-ptr: "127.0.0.1 $HOSTNAME.$DOMAIN"
394
        view-first: yes
395
        view-first: yes
395
EOF
396
EOF
396
                # Configuration file for $INTIF of forward
397
                # Configuration file for $INTIF of forward
397
                cat << EOF > /etc/unbound/conf.d/forward/iface.${INTIF}.conf
398
                cat << EOF > /etc/unbound/conf.d/forward/iface.${INTIF}.conf
398
server:
399
server: