Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.97 KB | None | 0 0
  1. [02:39] <@Squirrely> hey SymbolRate.
  2. [02:39] <@Squirrely> yeah i&#039;m not sure what to do with the rtorrent ports...
  3. [02:39] <&SymbolRate> what&#039;s up?
  4. [02:39] <@Squirrely> [14:48] <@Squirrely> are the ports not set up correctly? 5000-5009. is there something which we need to do to be able to use them?
  5. [02:39] <@Squirrely> [14:49] <@Squirrely> ie because my script looks if it can open the port. if it can then it knows it&#039;s open, if not then it tries another in the range 5000-5009
  6. [02:39] <@Squirrely> [14:50] <@Squirrely> know of a fix SymbolRate to make them show up as "filtered" when the command nmap -p 5000-5008 localhost |grep filtered is executed?
  7. [02:39] <@Squirrely> [15:18] <
  8. [02:40] <@Squirrely> also for some reason some of the dynamic ports aren&#039;t allowing autodl-irssi to bind.
  9. [02:40] <&SymbolRate> nmap -p 5000-5008 localhost looks OK
  10. [02:40] <@Squirrely> 49000_
  11. [02:40] <&SymbolRate> Interesting ports on localhost.localdomain (127.0.0.1):
  12. [02:40] <&SymbolRate> PORT STATE SERVICE
  13. [02:40] <&SymbolRate> 5000/tcp closed upnp
  14. [02:40] <&SymbolRate> 5001/tcp closed commplex-link
  15. [02:40] <&SymbolRate> 5002/tcp closed rfe
  16. [02:40] <&SymbolRate> 5003/tcp closed filemaker
  17. [02:40] <&SymbolRate> 5004/tcp closed unknown
  18. [02:40] <&SymbolRate> 5005/tcp open unknown
  19. [02:40] <&SymbolRate> 5006/tcp closed unknown
  20. [02:40] <&SymbolRate> 5007/tcp closed unknown
  21. [02:40] <&SymbolRate> 5008/tcp closed unknown
  22. [02:40] <@Squirrely> but 500[1-3] shouldn&#039;t be in use atm...
  23. [02:41] <&SymbolRate> they aren&#039;t
  24. [02:41] <&SymbolRate> 5005 is the only one in use - unless i&#039;m reading it wtrong
  25. [02:41] <@Squirrely> yeah 5005 is working.
  26. [02:43] <&SymbolRate> "filtered" means there is no response. "closed" means you got an ICMP closed
  27. [02:43] <@Squirrely> ah ok so it&#039;s just how iptables was set up
  28. [02:43] <@Squirrely> to either send a packet saying it&#039;s closed or just not reply...
  29. [02:43] <&SymbolRate> I don;t know why u would see "filtered" on ther server. from outside, maybe, but not from localhost
  30. [02:43] <@Squirrely> anyway i ended up fixing my other problem lol
  31. [02:44] <&SymbolRate> so everything OK?
  32. [02:45] <@Squirrely> still need to figure out a way for my python script to see if a port is open...i&#039;ll work on that later i guess.
  33. [02:46] <&SymbolRate> if it&#039;s "closed" then it&#039;s open (available)
  34. [02:46] <@Squirrely> oh also one last thing...here&#039;s the alias I&#039;m using for http downloads...but it isn&#039;t working for some reason.
  35. [02:46] <@Squirrely> #Alias /downloads /home/squirrely/downloads
  36. [02:46] <@Squirrely> ignore the #
  37. [02:46] <@Squirrely> it&#039;s commented as it causes an error.
  38. [02:47] <&SymbolRate> I usually just put a symlink in my www directory
  39. [02:47] <@Squirrely> oh that works too?
  40. [02:48] <&SymbolRate> IIRC
  41. [02:48] <@Squirrely> oh yeah it follows symlinks...durr.
  42. [05:03] <@Squirrely> around hawk?
  43. [05:41] <@Squirrely> if you want to try it out hawk, here&#039;s what you do:
  44. [05:41] <@Squirrely> the file is in your dir so just run it: python configslice.py
  45. [05:41] <@Squirrely> and it should work.
  46. [05:42] <@Squirrely> if it can&#039;t pick up a rtorrent port...you gotta put one in. I need to work on autodetecting that.
  47. [05:42] <@Squirrely> or make my program just keep a small log of whos using what port.
  48. [05:43] <@Squirrely> btw i&#039;m using 5002 so don&#039;t use that one. :P
  49. [06:17] <~hawk> kool
  50. [06:17] <~hawk> will try it in a bit :)
  51. [06:18] <@Squirrely> awesome
  52. [06:39] <@Squirrely> check er out hawk?
  53. [08:20] <&SymbolRate> Hey Squirrely, don;t modify sudoers
  54. [08:20] <&SymbolRate> instead so usermod -G admin squirrely
  55. [08:20] <&SymbolRate> s/so/use
  56. [08:20] <@Squirrely> i thought the admin group was disabled in the sudoers file?
  57. [08:21] <@Squirrely> oh dang i&#039;m remembering debian. it doesn&#039;t have the sudoers group by default.
  58. [08:22] <@Squirrely> easy fix. want me to patch it?
  59. [08:22] <&SymbolRate> I chagned it
  60. [08:22] <&SymbolRate> and added you & hawk to admin
  61. [08:22] <@Squirrely> sweet.
  62. [08:22] <@Squirrely> yeah a group keeps it easier to manage.
  63. [08:24] <&SymbolRate> yeah. I&#039;m gonne try to get rtorrent running - need a movie fast :)
  64. [08:26] <@Squirrely> on the new server?
  65. [08:26] <@Squirrely> try this out SymbolRate
  66. [08:26] <@Squirrely> i&#039;ll copy the script over to your dir.
  67. [08:26] <&SymbolRate> who&#039;s using 5003?
  68. [08:27] <@Squirrely> i am. testing my script.
  69. [08:27] <@Squirrely> alrighty SymbolRate
  70. [08:27] <@Squirrely> try out:
  71. [08:28] <@Squirrely> python configslice.py
  72. [08:28] <@Squirrely> which is in your user dir
  73. [08:28] <@Squirrely> you have to be logged in as your user btw.
  74. [08:28] <&SymbolRate> funy, the ports say "filtered
  75. [08:28] <&SymbolRate> " now
  76. [08:28] <@Squirrely> i need to work on the automatic detection of ports...but i&#039;ll churn that out later.
  77. [08:29] <&SymbolRate> I guess they are "filtered" when you are a normal user
  78. [08:29] <&SymbolRate> so I typed in a port number manually, now it&#039;s hanging?
  79. [08:29] <@Squirrely> which port?
  80. [08:30] <&SymbolRate> 5004
  81. [08:30] <@Squirrely> it&#039;s still hanging?
  82. [08:30] <&SymbolRate> yeah
  83. [08:30] <@Squirrely> murphy&#039;s law when someone else uses it, it breaks lol.
  84. [08:31] <&SymbolRate> yep
  85. [08:31] <@Squirrely> well i just tried it on my slice and it worked
  86. [08:31] <@Squirrely> interesting
  87. [08:31] <&SymbolRate> what is the apache config file and what does the apache config do?
  88. [08:32] <@Squirrely> where?
  89. [08:32] <&SymbolRate> Step 2
  90. [08:32] <&SymbolRate> wow - it&#039;s hung hard. ctl-c won&#039;t work
  91. [08:32] <@Squirrely> htaccess
  92. [08:33] <@Squirrely> jeeze lol.
  93. [08:33] <@Squirrely> oh i bet i know why. you had directories in there already
  94. [08:33] <@Squirrely> and i never tested if the script didn&#039;t have to create the directory...
  95. [08:34] <@Squirrely> get out of it then run this:
  96. [08:34] <@Squirrely> rm -rf .autodl/ .cache/ downloads/ .irssi/ .rtorrent.rc .session/ watch/ www/ .htpasswd
  97. [08:34] <@Squirrely> then retry
  98. [08:34] <@Squirrely> it&#039;s still version 0.1.0, so crashes are guaranteed :)
  99. [08:34] <@Squirrely> :P
  100. [08:35] <&SymbolRate> I did have dirs created already.
  101. [08:35] <@Squirrely> yeahhh. i&#039;ll need to see why it&#039;s hanging if the dirs are already there
  102. [08:35] <&SymbolRate> rerunning... seems to be hanging at same spot
  103. [08:35] <@Squirrely> run that clean up script then try again
  104. [08:36] <@Squirrely> something isn&#039;t adding up
  105. [08:36] <&SymbolRate> hangaroo
  106. [08:36] <@Squirrely> well here i&#039;ll copy mine into yours
  107. [08:37] <@Squirrely> alright try now?
  108. [08:37] <@Squirrely> if it hangs again...i&#039;m stuck.
  109. [08:39] <&SymbolRate> it&#039;s hung like a porn star
  110. [08:39] <@Squirrely> raaaaaaaaaaaaaaaaa
  111. [08:39] <@Squirrely> at what point?
  112. [08:39] <@Squirrely> send me the "progress" so far please
  113. [08:40] <&SymbolRate> Step 3: Configuring rtorrent
  114. [08:40] <&SymbolRate> Configuring rtorrent...
  115. [08:40] <&SymbolRate> Unable to find an open scgi port. Please specify a port (5000-5009): 5004
  116. [08:40] <&SymbolRate> ^C
  117. [08:40] <&SymbolRate> ^Z
  118. [08:40] <&SymbolRate> [1]+ Stopped python configslice.py
  119. [08:40] <@Squirrely> interesting
  120. [08:41] <&SymbolRate> u didn;t have me delete tmp tho
  121. [08:41] <@Squirrely> that&#039;s ok. that will just overwrite.
  122. [08:41] <@Squirrely> guess i&#039;ll create a user with a symlink and see if that&#039;s goofing with stuff.
  123. [08:47] <@Squirrely> so how is that add script used SymbolRate? ./add NuTZ squirr3ly1@gmail.com /diska 46.105.125.220
  124. [08:48] <&SymbolRate> yeah
  125. [08:52] <@Squirrely> hmm. that is some hard core lagging.
  126. [09:12] <@Squirrely> weird, wonder why they are saying filtered now...(the ports)
  127. [13:44] <@Squirrely> [10:11:03] around SymbolRate? rewrote the port detection section...so now it should work just fine. so try it when you get the chance [10:11:03]
  128. [13:44] <@Squirrely> [10:43:31] Alright hawk, when you get back and have a chance, try out that script. I have a fully working version now. It&#039;s in your home dir on LH. [10:43:31]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement