Milí majitelé routerů Turris,
toto fórum bylo 9. 12. 2016 zmrazeno a nahrazeno naším novým Turris fórem. Ještě chvíli bude dostupné k prohlížení, ale již zde není možné přispívat. Více informací naleznete v oznámení o uzavření fóra.
Dear Turris routers users,
this forum has been frozen on Dec 9th, 2016 and replaced by our new Turris forum. It will be read-only accessible for some time after. For more information, read the announcement about closing the forum.
etc/config/firewall
...
config 'redirect'
option 'name' 'openvpn'
option 'src' 'wan'
option 'proto' 'tcpudp'
option 'src_dport' '443'
option 'dest_ip' '192.168.1.1'
option 'dest_port' '1194'
etc/config/network
...
config interface 'lan'
option ifname 'eth0 eth1 tap0' # přidáno tap0
...
etc/config/openvpn
config 'openvpn' 'lan'
option 'enable' '1'
option 'tls_server' '1'
option 'port' '1194'
option 'proto' 'tcp'
option 'dev' 'tap0'
option 'ca' '/etc/easy-rsa/keys/ca.crt'
option 'cert' '/etc/easy-rsa/keys/server.crt'
option 'key' '/etc/easy-rsa/keys/server.key'
option 'dh' '/etc/easy-rsa/keys/dh2048.pem'
option 'server_bridge' '192.168.1.1 255.255.255.0 192.168.1.25 192.168.1.30' # IP adresy: IP adresa Turrisu | Prvni pridelena adresa pro OpenVPN | Posledni pridelena adresa pro OpenVPN
list 'push' 'dhcp-option DNS 192.168.1.1' # OpenVPN klient bude pouzivat DNS Turrisu
# list 'push' 'redirect-gateway def1' # Tohle nejspis chcete vynechat, jinak vsechen vas traffic potece pres Turris gateway
option 'client_to_client' '1'
option 'comp_lzo' 'yes'
option 'keepalive' '10 120'
option 'status' '/tmp/openvpn_tap0.status'
option 'persist_key' '1'
option 'persist_tun' '1'
option 'verb' '3'
option 'mute' '20'
root@turris:~# /etc/init.d/lighttpd restart
cat: can't open '/etc/lighttpd/conf.d/*.conf': No such file or directory
Syntax OK
/usr/lib/lighttpd/mod_alias.so
/usr/lib/lighttpd/mod_cgi.so
cat: can't open '/etc/lighttpd/conf.d/*.conf': No such file or directory
2015-11-02 22:11:31: (network.c.379) can't bind to port: 80 Address already in use
root@turris:~# netstat -pntle | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 29474/lighttpd
tcp 0 0 :::80 :::* LISTEN 29474/lighttpd
cat: can't open '/etc/lighttpd/conf.d/*.conf': No such file or directory
opkg install --force-reinstall lighttpd foris luci-base https-cert
. Příkaz jsem nezkoušel, tak je možné, že Vám vyhodí ještě nějaké chyby, ale snad už by neměl být problém je vyřešit.
--force-remove
jsem přidal na radu instalačního programu, kterou vyvodil z //usr/lib/opkg/info/foris.prerm: line 1: /etc/init.d/lighttpd: not found
):
root@turris:~# opkg install --force-reinstall --force-remove lighttpd foris luci
-base https-cert
Removing package lighttpd from root...
Removing package foris from root...
+ /etc/init.d/lighttpd disable
//usr/lib/opkg/info/foris.prerm: line 1: /etc/init.d/lighttpd: not found
+ /etc/init.d/lighttpd stop
//usr/lib/opkg/info/foris.prerm: line 1: /etc/init.d/lighttpd: not found
Not deleting modified conffile /etc/config/foris.
Not deleting modified conffile /etc/lighttpd/conf.d/foris.conf.
Removing package luci-base from root...
Not deleting modified conffile /etc/config/luci.
Removing package https-cert from root...
//usr/lib/opkg/info/https-cert.postrm: line 2: /etc/init.d/lighttpd: not found
Installing lighttpd (1.4.32-3) to root...
Downloading https://api.turris.cz/openwrt-repo/turris/packages//lighttpd_1.4.32-3_mpc85xx.ipk.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 94573 100 94573 0 0 31383 0 0:00:03 0:00:03 --:--:-- 31398
Installing foris (59) to root...
Downloading https://api.turris.cz/openwrt-repo/turris/packages//foris_59_mpc85xx.ipk.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 228k 100 228k 0 0 25472 0 0:00:09 0:00:09 --:--:-- 72254
Installing luci-base (0.12+git-15.092.31318-39a5f33-3) to root...
Downloading https://api.turris.cz/openwrt-repo/turris/packages//luci-base_0.12+git-15.092.31318-39a5f33-3_mpc85xx.ipk.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 138k 100 138k 0 0 46373 0 0:00:03 0:00:03 --:--:-- 46397
Installing https-cert (3) to root...
Downloading https://api.turris.cz/openwrt-repo/turris/packages//https-cert_3_mpc85xx.ipk.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1157 100 1157 0 0 117 0 0:00:09 0:00:09 --:--:-- 309
Configuring luci-base.
Configuring lighttpd.
Syntax OK
/usr/lib/lighttpd/mod_alias.so
/usr/lib/lighttpd/mod_cgi.so
2015-11-03 20:53:33: (network.c.379) can't bind to port: 80 Address already in use
Syntax OK
/usr/lib/lighttpd/mod_alias.so
/usr/lib/lighttpd/mod_cgi.so
2015-11-03 20:53:38: (network.c.379) can't bind to port: 80 Address already in use
Configuring foris.
+ [ -n ]
+ /etc/init.d/lighttpd enable
+ /etc/init.d/lighttpd restart
Syntax OK
/usr/lib/lighttpd/mod_alias.so
/usr/lib/lighttpd/mod_cgi.so
2015-11-03 20:53:38: (network.c.379) can't bind to port: 80 Address already in use
+ uci get -q foris.wizard.allowed_step_max
+ max_step=9
+ [ 0 = 0 ]
+ uci get -q foris.wizard.finished
+ wizard_finished=1
+ [ 0 = 1 ]
Configuring https-cert.
Syntax OK
/usr/lib/lighttpd/mod_alias.so
/usr/lib/lighttpd/mod_cgi.so
2015-11-03 20:53:38: (network.c.379) can't bind to port: 80 Address already in use
Collected errors:
* pkg_run_script: package "foris" prerm script returned status 127.
* file_md5sum_alloc: Failed to open file /etc/lighttpd/conf.d/foris.conf: No such file or directory.
* pkg_run_script: package "https-cert" postrm script returned status 127.
* resolve_conffiles: Existing conffile /etc/config/foris is different from the conffile in the new package. The new conffile will be placed at /etc/config/foris-opkg.
* resolve_conffiles: Existing conffile /etc/config/luci is different from the conffile in the new package. The new conffile will be placed at /etc/config/luci-opkg.
* pkg_run_script: package "https-cert" postinst script returned status 255.
* opkg_configure: https-cert.postinst returned 255.
Powered by mwForum 2.29.3 © 1999-2013 Markus Wichitill