Unable to locate configuration file to set static IPv4 address on tun0 interface

Hello. I am trying to install pihole with interface tun0 to have it working with my current openvpn installation.



  [✓] Root user check

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

  [✓] Disk space check
  [✓] Update local cache of available packages

  [✓] Checking yum for upgraded packages... 2 updates available
  [i] It is recommended to update your OS after installing the Pi-hole!

  [i] Installer Dependency checks...
  [✓] Checking for chkconfig

  [i] SELinux mode detected: Disabled
  [i] Using interface: tun0
  [i] Using DNS.WATCH
  [i] Warning: Unable to locate configuration file to set static IPv4 address

however I am getting this error above when running the installation command: curl -sSL https://install.pi-hole.net | bash

When choosing my default interface it works fine.

running ifconfig:

20: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
    link/none
    inet 10.8.0.1/24 brd 10.8.0.255 scope global tun0
       valid_lft forever preferred_lft forever
    inet6 fe80::e578:2762:8a1d:d7ed/64 scope link flags 800
       valid_lft forever preferred_lft forever

Please provide output of:

ls -la /etc/sysconfig/network-scripts

The config doesn't exist. But I believe it is working anyways now after first installing it on the first interface and then changing it to tun0 in the configs.

-rw-r--r--. 1 root root   226 Apr 14 00:50 ifcfg-br0
-rw-r--r--. 1 root root   170 Apr 27 07:57 ifcfg-em1
-rw-r--r--  1 root root    90 Apr 27 07:57 ifcfg-em1.pihole.orig
-rw-r--r--. 1 root root   275 Apr  7 02:14 ifcfg-em2
-rw-r--r--. 1 root root   254 Mar 29  2019 ifcfg-lo
lrwxrwxrwx. 1 root root    24 Apr  7 07:47 ifdown -> ../../../usr/sbin/ifdown
-rwxr-xr-x. 1 root root   654 Mar 29  2019 ifdown-bnep
-rwxr-xr-x. 1 root root  6532 Mar 29  2019 ifdown-eth
-rwxr-xr-x. 1 root root  6190 Aug  9  2019 ifdown-ib
-rwxr-xr-x. 1 root root   781 Mar 29  2019 ifdown-ippp
-rwxr-xr-x. 1 root root  4540 Mar 29  2019 ifdown-ipv6
lrwxrwxrwx. 1 root root    11 Apr  7 07:47 ifdown-isdn -> ifdown-ippp
-rwxr-xr-x. 1 root root  2130 Mar 29  2019 ifdown-post
-rwxr-xr-x. 1 root root  1068 Mar 29  2019 ifdown-ppp
-rwxr-xr-x. 1 root root   870 Mar 29  2019 ifdown-routes
-rwxr-xr-x. 1 root root  1456 Mar 29  2019 ifdown-sit
-rwxr-xr-x. 1 root root  1621 Mar 17  2017 ifdown-Team
-rwxr-xr-x. 1 root root  1556 Mar 17  2017 ifdown-TeamPort
-rwxr-xr-x. 1 root root  1462 Mar 29  2019 ifdown-tunnel
lrwxrwxrwx. 1 root root    22 Apr  7 07:47 ifup -> ../../../usr/sbin/ifup
-rwxr-xr-x. 1 root root 12415 Mar 29  2019 ifup-aliases
-rwxr-xr-x. 1 root root   910 Mar 29  2019 ifup-bnep
-rwxr-xr-x. 1 root root 13475 Mar 29  2019 ifup-eth
-rwxr-xr-x. 1 root root 10114 Aug  9  2019 ifup-ib
-rwxr-xr-x. 1 root root 12075 Mar 29  2019 ifup-ippp
-rwxr-xr-x. 1 root root 11893 Mar 29  2019 ifup-ipv6
lrwxrwxrwx. 1 root root     9 Apr  7 07:47 ifup-isdn -> ifup-ippp
-rwxr-xr-x. 1 root root   650 Mar 29  2019 ifup-plip
-rwxr-xr-x. 1 root root  1064 Mar 29  2019 ifup-plusb
-rwxr-xr-x. 1 root root  4997 Mar 29  2019 ifup-post
-rwxr-xr-x. 1 root root  4154 Mar 29  2019 ifup-ppp
-rwxr-xr-x. 1 root root  2001 Mar 29  2019 ifup-routes
-rwxr-xr-x. 1 root root  3303 Mar 29  2019 ifup-sit
-rwxr-xr-x. 1 root root  1755 Mar 17  2017 ifup-Team
-rwxr-xr-x. 1 root root  1876 Mar 17  2017 ifup-TeamPort
-rwxr-xr-x. 1 root root  2711 Mar 29  2019 ifup-tunnel
-rwxr-xr-x. 1 root root  1836 Mar 29  2019 ifup-wireless
-rwxr-xr-x. 1 root root  5419 Mar 29  2019 init.ipv6-global
-rw-r--r--. 1 root root 20671 Mar 29  2019 network-functions
-rw-r--r--. 1 root root 31027 Mar 29  2019 network-functions-ipv6

The installer looks for a ifcfg- file for the chosen interface to configure the static IP which does not appear to exist on your system.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.