如何将来自不同子域的stream量路由到不同的内部IP地址? 我build立了一个Debian路由器,它有一个公有的IP和一个指向这个IP的域名,我想有不同的子域到达不同的内部机器。 我在这里谈论HTTP,SSH和FTPstream量,并在路由器上安装Shorewall和dnsmasq。 例如,URL:ftp.example.com我想指向一台内部IP为192.168.1.10的机器,然后是dev.example.com我想要另一个内部IP。 说192.168.1.200 如果我能指定哪些协议允许在哪些子域上,并明确地将每个协议和端口路由到内部机器,那将是一件好事。
我有一些麻烦得到一个Debiannetworking服务器打开端口80的HTTPstream量。 在我的iptables中,我使用以下命令打开了端口80: iptables -A INPUT -p tcp –dport 80 -j ACCEPT iptables -A INPUT -p udp –dport 80 -j ACCEPT 运行一个iptables -L,然后显示以下规则: Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT udp — anywhere anywhere udp dpt:www ACCEPT tcp — anywhere anywhere tcp dpt:www Chain FORWARD (policy ACCEPT) target prot opt source destination Chain […]
我不确定在Debian服务器上做什么 aptitude install apache2 ls /etc/apache2 你会期望看到configuration,对不对? aptitude remove apache2 它应该删除一切,对不对? ls /etc/apache2 但configuration在这里。 rm -rf /etc/apache2 aptitude install apache2 ls /etc/apache2 没有find目录。 任何指导?
一个朋友在他的SSHlogin提示中出现问题, 用户名提示立即响应(当你连接VIA ssh时),但是密码提示(在你input用户名之后)立即挂起10秒左右。 之后,系统运行良好。 它曾经运行良好(如通常情况下),但现在,随着git推等,它变得非常讨厌。 为了解决这个问题,我可以看一下什么? 编辑:添加-vv ,它似乎挂在debug2: key: /home/[removed]/.ssh/id_dsa ((nil)) . debug2: key: /home/[removed]/.ssh/id_dsa ((nil))
我正在尝试更正Debian服务器上的时间。 我select了我的时区 /usr/bin/tzselect 我select了正确的大陆和国家,当系统询问我date是否正确,我必须说是或否时间显示正确,然而我确认和检查“date”后,时间不会改变,即。 与运行时区configuration之前是一样的。 有什么build议么? 谢谢。
我有问题在Debian 6 Squeeze上设置永久性的iptables。 我正在创build一个新的服务器实例,新创build,更新并升级到最新版本。 以下是我多次使用的教程: http://wiki.debian.org/iptables 我以root用户身份执行所有操作。 在完成教程和重启服务器中的所有步骤之后,iptables被重置为默认状态,即。 允许一切进出。 我的目标是设置它们为“好”,所以每当系统重新启动时它们都不会重置。 我将不胜感激任何forms的帮助。 谢谢。
我在我的Debian系统中键入以下内容: iptables –list 并得到如下: libkmod: ERROR ../libkmod/libkmod-index.c:816 index_mm_open: magic check fail: b007fa57 instead of b007f457 iptables v1.4.13: can't initialize iptables table `filter': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. 有关如何解决它的任何提示?
我使用Debian并尝试运行update-rc.d sphinx默认值,但它显示: update-rc.d command not found 脚本狮身人面像已经存在。 我该如何解决?
我尝试通过SSH连接 ssh -X user@host 但是我明白了 $ xterm xterm Xt error: Can't open display: xterm: DISPLAY is not set $ echo $DISPLAY # … nothing 在我的sshd_config中有 X11Forwarding yes X11DisplayOffset 10 编辑 在/var/log/auth.log我得到 sshd[7396]: error: Failed to allocate internet-domain X11 display socket.
我遇到了aptitude update和apt-get update没有下载某个列表文件的麻烦(具体来说http://gb.archive.ubuntu.com precise / universe Sources [5,019 kB])。 我可以从这里通过我的浏览器下载: http : //gb.archive.ubuntu.com/ubuntu/dists/precise/universe/source/Sources.bz2 计划是通过我的本地机器下载,FTP到服务器,在那里aptitude和apt-get寻找它,只需要在本地Hit这个文件,而不是重新下载。 所以我正在寻找下载源列表的地方,包caching当然是/var/cache/apt但是包列表不在那里?