Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - robwoodward75

Pages: 1 [2] 3 4
16
Developers / Re: Transmission torrent on LinuxMCE
« on: July 30, 2013, 11:23:29 pm »
OK, did up to the raising of the Trac ticket, but the svn diff left me a little worried, in that it appears that there have been changes since my install, and I don't want to put something in which shows new changes being replaced with old stuff, effectively undoing other peoples work.  Here is the output of the svn diff, and it shows replacing lines, which I hadn't replaced.  Also, it doesn't include the new files I created?!  Any Suggestions?!  or is this what you expected to see?!  Sorry, first time doing this!!

Code: [Select]
Index: lmce-admin/include/config/database.inc.php
===================================================================
--- lmce-admin/include/config/database.inc.php (revision 27776)
+++ lmce-admin/include/config/database.inc.php (working copy)
@@ -26,6 +26,10 @@
   $securityADO = &ADONewConnection($dbPlutoSecurityType);
   $securityADO->NConnect($dbPlutoSecurityServer,urlencode($dbPlutoSecurityUser),urlencode($dbPlutoSecurityPass),urlencode($dbPlutoSecurityDatabase));
 
+ // TransmissionADO connection
+ $transmissionADO = &ADONewConnection($dbTransmissionType);
+ $transmissionADO->NConnect($dbTransmissionServer,urlencode($dbTransmissionUser),urlencode($dbTransmissionPass),urlencode($dbTransmissionDatabase));
+
   //for sqlite
   //$db = &ADONewConnection('sqlite');
   //$db->NConnect($GLOBALS['appRoot'].'sqlite.db'); # sqlite will create if does not exist
Index: lmce-admin/include/config/globalconfig.inc.php
===================================================================
--- lmce-admin/include/config/globalconfig.inc.php (revision 27776)
+++ lmce-admin/include/config/globalconfig.inc.php (working copy)
@@ -32,6 +32,13 @@
  $dbPlutoSecurityServer = $DB_HOST;
  $dbPlutoSecurityDatabase = "pluto_security";
 
+ // Transmission
+ $dbTransmissionType = "mysql";
+ $dbTransmissionUser = "transmission";
+ $dbTransmissionPass = "";
+ $dbTransmissionServer = $DB_HOST;
+ $dbTransmissionDatabase = "transmission_links";
+
 function LoadConfig($configFile,$configKey) {
  //LoadConfig()
  //Looks for the assigned value of $configKey within $configFile,
Index: lmce-admin/index.php
===================================================================
--- lmce-admin/index.php (revision 27776)
+++ lmce-admin/index.php (working copy)
@@ -1078,10 +1078,9 @@
  $output = new Template($dbADO);
  $output->setTemplateFileType('large');
  @include($GLOBALS['globalConfigPath'].'asteriskDB.inc.php');
- @include($GLOBALS['globalConfigPath'].'telecom.inc.php');
      include_once('operations/phones/phoneLines.php');
      $output->setHelpSrc('/wiki/index.php/Phone_Lines');
-     phoneLines($output,$asteriskADO,$dbADO,$telecomADO);
+     phoneLines($output,$asteriskADO,$dbADO);
  break;
  case 'fax';
  $output = new Template($dbADO);
@@ -1801,6 +1800,20 @@
      include_once('operations/deviceTemplate/commMethod.php');
      commMethod($output,$dbADO);    
  break;
+ case 'transmission-daemon':
+ $output = new Template($dbADO);
+ $output->setTemplateFileType('large');
+     include_once('operations/others/transmissionDaemon.php');
+     transmissionDaemon($output,$dbADO,$transmissionADO);    
+     //transmissionDaemon($output,$dbADO,"");    
+ break;
+ case 'transmissionLink':
+ $output = new Template($dbADO);
+ $output->setTemplateFileType('small');
+     include_once('operations/others/transmissionLink.php');
+     transmissionLink($output,$dbADO,$transmissionADO);    
+     //transmissionLink($output,$dbADO,"");    
+ break;
  case 'upnpServer':
  $output = new Template($dbADO);
  $output->setTemplateFileType('large');


17
Developers / Re: Transmission torrent on LinuxMCE
« on: July 30, 2013, 05:00:48 pm »
Hi Posde,

If I had the slightest idea how to do that, then I would!!  If you can point me to a suitable set of destructions to follow, I'de be glad to do that, if that's the preferred method.

Thanks for taking the time to look.

18
Developers / Transmission torrent on LinuxMCE
« on: July 30, 2013, 04:46:33 pm »
All,

Not sure if this is the right place to put this, but I have recently spent a lot of time including transmission-daemon and some download management tools into the Linux MCE web admin site.  I have tried best I can to keep the theme as per the rest of the site, apart from the Transmission-daemon server connection, which is as per the transmission daemon installation.  There are pages on there to create symbolic links from either file or directory level to another folder (in my case, I was fed up with all the Sample.avi etc etc etc) appearing on Media Tomb, hence the symbolic links to just the movie!!  There is also built in an unrar, which most of the downloads appear to be.

The installation tool checks for transmission-daemon, and unrar, offering to add them in if they are not installed, adds a new database into MySQL called "transmission_links", and adds the menu option into Advanced > Configuration, then copies all the necessary web and scripting files into the relevant places.

In my set-up, I have put transmission-daemon's setting (/etc/transmission-daemon/settings.json) to use /home/public/torrents folder in my set-up, and my mediatomb only looks at /home/public/data.


WARNING!!!
Due to the new web pages, index.php will be replaced, as will include/config/database.inc.php and include/config/globalconfig.inc.php, so, if you have made any changes to these files, please be careful!!!  Back-up copies will however remain in their location with the date and time stamp after the file name so you can return to "normal" afterwards, similar to: index.php-20130729165423.bak.

Disclaimer
I accept no responsibility for loss of data, so please be sure to read through the install script prior to running, if you feel happier, then create the database and user, and copy the files manually.



Hope you like the layout, I will continue to try to work on advancing the layout and interface, and would appreciate any input from the outside world!

19
Users / Re: No VPN Connection on 10.04
« on: December 11, 2012, 03:24:07 pm »
Interesting........

I only have a modem connection to the outside facing NIC, the routers are connected to the internal NIC, which I can get (or at least have got) VPN connection on using one of the settings suggested.  Office issue I can understand, I have similar problem with ssh to my server from the office, as they block outgoing traffic on port 22, so I have to port forward from another port number back to 22 within the LMCE firewall.  however, I have been trying using my Android mobile mainly, or, my laptop pointing at the external DNS entry.  Both of which I can get to work from internal to the network, using 192.168.80.1 as the host.


Not sure if it is the modem how I can test / verify that?!  Any ideas?


Rob.

20
Users / Re: No VPN Connection on 10.04
« on: December 10, 2012, 01:38:33 pm »
According to Sambuca on the Ticket, he has a working VPN connection, and has had all along.

Quote
For the record, this was a generic comment related to the logs posted here and elsewhere.

For me, VPN has worked all along, and this was communicated to pos in IRC.


Sambuca,

Any chance you could therefore share all your VPN related settings with us all (obviously hiding passwords), so that we may all have working VPN please?  We just need one fully working set which we can try them and confirm.


I am struggling to understand how you've had a working connection all a along, and we (myself, Techstyle, Polly, pw44, and I think posde?!) cannot.  I have only ever managed to get a stable VPN connection by connecting to it from within my own network at home, not from outside that network.  From outside my network, I can get the IPSEC to authenticate via PSK now, but never managed to connect the L2TP part to establish the fully working VPN. Even with the firewall switched off, I cannot establish a connection.


Thanks.

21
Users / Re: No VPN Connection on 10.04
« on: December 04, 2012, 11:05:42 pm »
Hi Techstyle,

Looks like Pos decided that Sambuca's comment of:
Quote
Changed 10 days ago by sambuca

For the record, the ipsec stuff is logged to /var/log/auth.log and the pppd and xl2tpd is logged to /var/log/syslog. Once you see "STATE_QUICK_R2: IPsec SA established transport mode" in the auth.log, ipsec is connected, and you should start looking at the xl2tpd/pppd logs.

meant that the whole thing was working, rather than just the ipsec connection.  Any chance you can re-open the ticket with a suitable comment to make sure the whole thing is fixed before closing the ticket?!!

22
Users / Re: No VPN Connection on 10.04
« on: November 19, 2012, 09:17:41 pm »
Techstyle,

You're right, I've just confirmed even with the firewall disabled, the same issue / error, so now I'm back to being rather lost!!  interface issue perhaps?!

Very frustrating!!  keep digging!!

23
Users / Re: No VPN Connection on 10.04
« on: November 19, 2012, 04:40:02 pm »
Thanks Polly,

Added ICMP, still the same message in auth.log.


24
Users / Re: No VPN Connection on 10.04
« on: November 19, 2012, 02:21:21 pm »
Techstyle,

I have attached my latest files to this post which allows for a stable connection from within my network.  i.e. I attach my phone to my wifi, and set 192.168.80.1 as the VPN server.  The connection was stable until I disconnected it.  From outside connecting through my DynDNS account however, I get the following line in the Auth.log:

Code: [Select]
initial Main Mode message received on XXX.XXX.XXX.XXX:500 but no connection has been authorized with policy=PSK

I think this might now be down to Firewall issues (Port 500 udp is open on my Firewall by the way).

Feel free to test and add to if you find anything.  Will try to get around to testing with Firewall turned off, in theory, this should work if all the other settings are correct!

25
Users / Re: No VPN Connection on 10.04
« on: November 15, 2012, 10:58:25 pm »
Regarding the !VPNpass1 issue, I've attached 3 files of the web admin which I've edited to allow Admin / primary / power users, whatever you want to call them to change user passwords and VPN passwords without needing to know the initial password (fairly basic admin operations).  Also, stops the enable / disable VPN option from resetting the VPN password to !VPNpass1.  I will also attach them to Techstyle's ticket.

Still working on the actual connection however!

26
Users / Re: No VPN Connection on 10.04
« on: November 07, 2012, 12:32:15 pm »
Techstyle,

Good spot, yes, I have rebooted, well, power cut anyway!!  Next step I think is a UPS!!!!  Although, judging by Sambuca's comments, this may have been a red herring in the first place.  It was simply something I had spotted in the Openswan setup guides which was different, therefore, worth a try!


Sambuca,
Quote
What do you mean, "!VPNPass1" seems pretty plain text to me..?
In my chap-secrets file, all my users have the same password, "!VPNpass1", and !VPNpass1 is not my, nor any other of the users password!!  I presume from this, you do not?!

i.e it looks roughly like this (obviously my users aren't called test1, test2...... but you get the picture!):
Code: [Select]
# Secrets for authentication using CHAP
test1     l2tpd   !VPNpass1        *
test2     l2tpd   !VPNpass1        *
test3     l2tpd   !VPNpass1        *
test4     l2tpd   !VPNpass1        *


I'm beginning to wonder if I have something wrong with my webadmin after Sambuca's comments?!

For any LinuxMCE God's about, I'd be interested to know how the average user, who is not happy to fiddle in the command line, or less still access the MySQL database is able as the primary / admin user within their LinuxMCE system to reset a forgotten normal or VPN passwords for others?  This is a fairly basic Admin type task, yet I see no feature for it?!

27
Users / Re: No VPN Connection on 10.04
« on: November 06, 2012, 12:21:00 am »
My current settings for the brief connections I can get:

/etc/ipsec.conf
Code: [Select]
# /etc/ipsec.conf - Openswan IPsec configuration file

version 2.0

config setup
  nat_traversal=yes
  virtual_private=%4:192.168.80.0/24
  oe=off
  protostack=netkey

conn L2TP-PSK-NAT
  rightsubnet=vhost:%priv
  also=L2TP-PSK-noNAT


conn L2TP-PSK-noNAT
  authby=secret
  pfs=no
  auto=add
  keyingtries=3
  rekey=no
  ikelifetime=8h
  keylife=1h
  type=transport
  left=%defaultroute
  leftprotoport=17/1701
  right=%any
  rightprotoport=17/%any
  dpddelay=15
  dpdtimeout=30
  dpdaction=clear

/etc/ipsec.secret
Code: [Select]
# RCSID $Id: ipsec.secrets.proto,v 1.3.6.1 2005/09/28 13:59:14 paul Exp $
# This file holds shared secrets or RSA private keys for inter-Pluto
# authentication.  See ipsec_pluto(8) manpage, and HTML documentation.

# RSA private key for this host, authenticating it to any other host
# which knows the public part.  Suitable public keys, for ipsec.conf, DNS,
# or configuration of other implementations, can be extracted conveniently
# with "ipsec showhostkey".

192.168.80.1 %any: PSK "MyPSKSecret"



/etc/xl2tpd/xl2tpd.conf
Code: [Select]
[global]
ipsec saref = yes

[lns default]
ip range = 192.168.80.200-192.168.80.220
local ip = 192.168.80.1
refuse chap = yes
refuse pap = yes
require authentication = yes
name = LinuxMCE_VPN_Server
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes

/etc/ppp/options.xl2tpd
Code: [Select]
require-mschap-v2
ms-dns 192.168.80.1
ms-dns 8.8.4.4
asyncmap 0
auth
crtscts
lock
hide-password
modem
debug
name l2tpd
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4

/etc/ppp/chap-secrets
Code: [Select]
# Secrets for authentication using CHAP
test1     l2tpd   MyPasswd        *


I found I couldn't get a connection to work however until I replaced the !VPNpass1 against my user with a plain text password.  Hope this helps someone make sense of the issues.

28
Users / Re: No VPN Connection on 10.04
« on: October 29, 2012, 08:57:00 pm »
Thanks pw44

Just edited /usr/pluto/bin/Network_Firewall.sh

I would suggest adding the following to the bottom of /usr/pluto/bin/Network_Firewall.sh

Code: [Select]
# Set VPN Protocols
if [[ "$VPNenabled" == "on" ]]; then
        iptables --append FORWARD -o ppp+ --protocol tcp --tcp-flags SYN,RST SYN --jump TCPMSS --clamp-mss-to-pmtu
        iptables --append INPUT  --protocol 47 --jump ACCEPT
        iptables --append OUTPUT --protocol 47 --jump ACCEPT
fi


I have tested the above, and it appears to be working,

In as much as I now have the same issue as connecting locally, which I presume will be incompatibility issue between Openswan and Android 2.3!!!

Going to try from my Kubuntu & Windows laptops........again!!

29
Users / Re: No VPN Connection on 10.04
« on: October 28, 2012, 04:42:56 pm »
Update:

From my internal network, I can get my Android phone to connect briefly (as in seconds before dropping the connection)  Which tends to suggest there's an external firewall issue as well as whatever security / version issues I have.

I have the following ports open:
4500 upd
500 udp
1701 udp

oddly, I can't connect with either my kubuntu or Windows laptops internally or externally.

Getting very frustrated with this issue!!!

30
Users / Re: No VPN Connection on 10.04
« on: October 26, 2012, 07:39:03 pm »
Tried a few more things with the settings, this time without trying to upgrade anything!!  I have managed to get the L2TP working, however xl2tp seems to still be causing an issue.  See below:

Code: [Select]
Oct 26 17:52:01 dcerouter pluto[27401]: "L2TP-PSK-NAT"[1] 192.168.80.139 #23: ignoring informational payload, type IPSEC_INITIAL_CONTACT msgid=00000000
Oct 26 17:52:01 dcerouter pluto[27401]: "L2TP-PSK-NAT"[1] 192.168.80.139 #23: received and ignored informational message
Oct 26 17:52:02 dcerouter pluto[27401]: "L2TP-PSK-NAT"[1] 192.168.80.139 #23: the peer proposed: 92.235.79.186/32:17/1701 -> 192.168.80.139/32:17/0
Oct 26 17:52:02 dcerouter pluto[27401]: "L2TP-PSK-NAT"[1] 192.168.80.139 #24: responding to Quick Mode proposal {msgid:431872ee}
Oct 26 17:52:02 dcerouter pluto[27401]: "L2TP-PSK-NAT"[1] 192.168.80.139 #24:     us: 92.235.79.186[+S=C]:17/1701
Oct 26 17:52:02 dcerouter pluto[27401]: "L2TP-PSK-NAT"[1] 192.168.80.139 #24:   them: 192.168.80.139[+S=C]:17/0
Oct 26 17:52:02 dcerouter pluto[27401]: "L2TP-PSK-NAT"[1] 192.168.80.139 #24: keeping refhim=4294901761 during rekey
Oct 26 17:52:02 dcerouter pluto[27401]: "L2TP-PSK-NAT"[1] 192.168.80.139 #24: transition from state STATE_QUICK_R0 to state STATE_QUICK_R1
Oct 26 17:52:02 dcerouter pluto[27401]: "L2TP-PSK-NAT"[1] 192.168.80.139 #24: STATE_QUICK_R1: sent QR1, inbound IPsec SA installed, expecting QI2
Oct 26 17:52:02 dcerouter pluto[27401]: "L2TP-PSK-NAT"[1] 192.168.80.139 #24: transition from state STATE_QUICK_R1 to state STATE_QUICK_R2
Oct 26 17:52:02 dcerouter pluto[27401]: "L2TP-PSK-NAT"[1] 192.168.80.139 #24: STATE_QUICK_R2: IPsec SA established transport mode {ESP=>0x032ff1f1 <0xda77ca7b xfrm=3DES_0-HMAC_SHA1 NATOA=none NATD=none DPD=none}

Apparently, from what I've read, the last line means the L2TP tunnel has been established.  In /var/log/daemon.log I get the following output:

Code: [Select]
Oct 26 17:51:24 dcerouter xl2tpd[12399]: Listening on IP address 0.0.0.0, port 1701
Oct 26 17:52:05 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:10 dcerouter xl2tpd[12399]: last message repeated 2 times
Oct 26 17:52:10 dcerouter xl2tpd[12399]: Maximum retries exceeded for tunnel 16046.  Closing.
Oct 26 17:52:11 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:11 dcerouter xl2tpd[12399]: Connection 26256 closed to 192.168.80.139, port 50906 (Timeout)
Oct 26 17:52:13 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:15 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:16 dcerouter xl2tpd[12399]: Unable to deliver closing message for tunnel 16046. Destroying anyway.
Oct 26 17:52:17 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:26 dcerouter xl2tpd[12399]: last message repeated 3 times
Oct 26 17:52:26 dcerouter xl2tpd[12399]: Maximum retries exceeded for tunnel 51656.  Closing.
Oct 26 17:52:27 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:27 dcerouter xl2tpd[12399]: Connection 26256 closed to 192.168.80.139, port 50906 (Timeout)
Oct 26 17:52:29 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:31 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:32 dcerouter xl2tpd[12399]: Unable to deliver closing message for tunnel 51656. Destroying anyway.
Oct 26 17:52:33 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:37 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:39 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:41 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:42 dcerouter xl2tpd[12399]: Maximum retries exceeded for tunnel 7793.  Closing.
Oct 26 17:52:43 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:43 dcerouter xl2tpd[12399]: Connection 26256 closed to 192.168.80.139, port 50906 (Timeout)
Oct 26 17:52:43 dcerouter xl2tpd[12399]: control_finish: Peer requested tunnel 26256 twice, ignoring second one.
Oct 26 17:52:43 dcerouter xl2tpd[12399]: check_control: Received out of order control packet on tunnel -1 (got 1, expected 0)
Oct 26 17:52:43 dcerouter xl2tpd[12399]: handle_packet: bad control packet!
Oct 26 17:52:48 dcerouter xl2tpd[12399]: Unable to deliver closing message for tunnel 7793. Destroying anyway.

So, its definitely a xl2tpd issue....... I think?!

I got this far by making the following changes, not entirely sure which of them affected the connection:

/etc/ipsec.conf
changed
Code: [Select]
virtual_private=%4:192.168.80.0/24to
Code: [Select]
virtual_private=%v4:192.168.80.0/24(adding a v after the %)


/etc/ipsec.secrets
changed:
Code: [Select]
%any %any: "MyXL2TPSuperSecretPassword"to
Code: [Select]
%defaultroute %any: PSK "MyXL2TPSuperSecretPassword"
/etc/ppp/options.xl2tpd
Code: [Select]
ms-dns 192.168.80.1to
Code: [Select]
ms-dns 8.8.8.8
ms-dns 8.8.4.4

The only file that I haven't changed within the likely culprits is /etc/ppp/chap-secrets, which contains no mention of the VPN password I set, but instead has the following type entries:

Code: [Select]
# Secrets for authentication using CHAP
myuser    l2tpd   !VPNpass1       *

How does it resolve !VPNpass1? I also tried putting a plain text password in instead and restarting the x2ltpd, but no better!

The upshot is it's still not working grrrrrrrrrrrrrrrrrrrrrrr!!!!!    >:( >:( >:(


Pages: 1 [2] 3 4