AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-254338

hellb0y77's questions

Martin Hope
hellb0y77
Asked: 2016-10-26 06:07:19 +0800 CST

基本身份验证 apache 2.2 绕过 IP

  • 0

如何设置 apache 2.2 的基本身份验证以绕过 IP?我已经关注了这个 wiki http://wiki.apache.org/httpd/BypassAuthenticationOrAuthorizationRequirements,但总是询问密码,也列出了 IP:

<Directory /var/www/html/mydir>
    AuthName "Private"
    AuthType Basic
    AuthUserFile "/etc/httpd/htpasswd"
    Require valid-user
    Order allow,deny
    Allow from 111.111.111.111 222.222.222.222
    Satisfy any
</Directory>

我在haproxy下,但我设置了IP转发,我已经这样设置LogFormat了:

LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

access_log 是:

111.111.111.111 - - [25/Oct/2016:12:35:41 +0200] "GET /index.html HTTP/1.1" 401 487 "-" "Mozilla/5.0 (X11; Linux armv7l; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.7.0"
apache-2.2 authentication http-basic-authentication mod-authz-host
  • 1 个回答
  • 1904 Views
Martin Hope
hellb0y77
Asked: 2016-02-18 00:47:30 +0800 CST

VPN:错误:Linux 路由添加命令失败

  • 19

我已经配置了一个 VPN 服务器

local 192.168.0.250
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server-vpn.crt
key /etc/openvpn/easy-rsa/keys/server-vpn.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
push "route 10.8.0.1 255.255.255.255"
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.0.250 255.255.255.0"
push "dhcp-option DNS 8.8.8.8"
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0
cipher AES-128-CBC
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log 20
log /var/log/openvpn.log
verb 1

当使用以下命令从 linux 终端连接 openvpn 客户端时:

openvpn --config /home/user/myfile.ovpn

我有这个错误:

OpenVPN 2.3.2 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Dec  1 2014
Control Channel Authentication: tls-auth using INLINE static key file
UDPv4 link local: [undef]
UDPv4 link remote: [AF_INET]xx.xx.xx.xx:1194
[server-vpn] Peer Connection Initiated with [AF_INET]xx.xx.xx.xx:1194
TUN/TAP device tun0 opened
do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
/sbin/ip link set dev tun0 up mtu 1500
/sbin/ip addr add dev tun0 local 10.8.0.14 peer 10.8.0.13
RTNETLINK answers: Invalid argument
ERROR: Linux route add command failed: external program exited with error status: 2
RTNETLINK answers: File exists
ERROR: Linux route add command failed: external program exited with error status: 2
Initialization Sequence Completed
vpn
  • 1 个回答
  • 114843 Views
Martin Hope
hellb0y77
Asked: 2016-01-21 06:37:34 +0800 CST

使用密码挂载 NFS 的 fstab 条目

  • 14

我需要在引导时使用 NFS 挂载磁盘,以便从控制台手动挂载我键入:

mount //192.168.0.1/NASShare -o username=administrator,password=pass /mnt/NAS

/etc/fstab我添加了这一行:

192.168.0.1:/NASShare  /mnt/NAS  nfs user=administrator,password=pass  0 0

但是在重新启动时磁盘未安装,错误在哪里?

nfs
  • 2 个回答
  • 121365 Views
Martin Hope
hellb0y77
Asked: 2015-12-17 05:41:46 +0800 CST

当前没有写入 IDO 的 icinga 实例

  • 8

嗨,我有来自官方文档的安装程序 icinga2 和 icingaweb2:

icinga2: http ://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/getting-started#!/icinga2/latest/doc/module/icinga2/chapter/getting-started#setting-up-冰糖2

和 icingaweb2:https ://github.com/Icinga/icingaweb2/blob/master/doc/installation.md

在设置过程中,当在“监控 IDO 资源”页面中设置监控模块时,我插入了数据库的凭据,但出现以下错误:

There is currently no icinga instance writing to the IDO. Make sure that a icinga instance is configured and able to write to the IDO.

有任何想法吗?

monitoring
  • 2 个回答
  • 25036 Views
Martin Hope
hellb0y77
Asked: 2015-11-04 08:49:07 +0800 CST

从远程启动工作到安全的詹金斯

  • 0

我需要从远程启动一个安全的詹金斯工作,我尝试过使用 api 令牌,而不是启动它显示詹金斯登录页面的工作。我使用的网址是:

http://user:api_token@server_jenkins:8080/job/name_build/build?delay=0sec

谢谢

jenkins
  • 2 个回答
  • 784 Views
Martin Hope
hellb0y77
Asked: 2015-07-19 05:29:45 +0800 CST

APACHE - 将域重定向到 VirtualHost 的子文件夹

  • 2

我需要重定向到子文件夹,当我转到 domain.com 时,重定向到 domain.com/foo。这次我有一个简单的 apache 配置Alias /foo /var/www/foo。我想需要创建一个 VirtualHost,我已经做了这个:

<VirtualHost *:80>
        ServerName domain.com
        Redirect permanent / http://domain.com/foo/
</VirtualHost>

但我有too many redirect错误。我试图评论Alias /foo /var/www/foo并添加:

<VirtualHost *:80>
        ServerName domain.com/foo
        <Directory /var/www/foo/>
        Options  FollowSymLinks
        Require all granted
        </Directory>
</VirtualHost>

但我有同样的错误,你知道吗?

谢谢

redirect
  • 2 个回答
  • 11029 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve