=== tortuguito is now known as tortu[banhu [01:59] Can you recommend a tool that will brute force a given FTP server at least 20-30 times before crashing ? preferably in under 5 minutes, it has to trigger fail2ban [02:00] apparently running ftp from the command line multiple times is not fast enough [02:01] THC Hydra? [02:02] I think my fail2ban is incorrectly setup, I did at least 20 logins in 2 minutes, that should of triggered it, I'll keep looking === esquilinho is now known as o_ultimo_do_moic [02:50] while true; do ftp somehost &; done [02:50] could crash your system [02:59] qman__: yes, nie fork bomb === o_ultimo_do_moic is now known as tortux [03:07] Not sure it would trigger fail2ban either, depending I guess on the regex used === jason is now known as Guest38057 === Guest38057 is now known as jasef [04:35] Hi everyone, I wanted to setup a static IP address for my home server. [04:35] http://www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a-static-ip-address/ [04:35] That is the site I was following but I had a few quick questions for anyone that is willing to help. [04:35] I'll help if I can, shoot [04:36] 1. What is the netmask I should use? 255.255.255.0 seems normal from what I have seen but was not sure. [04:36] Use whatever netmask your home network uses. Probably 255.255.255.0, [04:36] 2. network is refering to the actual router it is connecting to? [04:36] Are you on 192.168.x.9? [04:36] .x.0* [04:36] 192.168.0.xx [04:36] and no, network is the 'network address' which is the first address, which is unusable [04:37] So for you, you want 192.168.0.0 as the network [04:37] ok so what about broadcast? and gateway? [04:37] broadcast should be 192.168.0.255 [04:37] And gateway is the IP of your router [04:37] Which is probably 192.168.0.1 [04:37] correct [04:38] wellt hen I guess I will try out everything on that site and if it doesnt work I will have to pull out the monitor [04:38] and keyboard to reset everything haha [04:38] Lol. It's always dangerous to try that :P [04:38] to try and setup a static IP? [04:38] But as long as you have everything from the guide (double check for typos!) it should be fine [04:38] I wish I could just do it with my network [04:38] No, to set new settings that can screw up your networking :P [04:39] o very true haha [04:39] Can't your router give out DHCP reservations? [04:39] I meant router not network [04:39] I dont think so I poked around but count find anything [04:39] couldnt* [04:40] Eh. Some router's don't do it, but that's okay. That config should work. Just make sure you have the auth eth0 line there too or it won't even try to come up [04:41] ya the router is an older linksys router with limited features. [04:41] What IP are you trying to assign it? [04:41] well just something static [04:42] I'd recommend something that the router's DHCP won't normally assign, so that it doesn't conflict with anything in the future. [04:42] it was at 192.168.0.14 for a long time but I was thinking about doing something higher like 68.111.168.2260 [04:42] Noooo. [04:42] ip start at .10 and go up from there [04:42] It has to be 192.168.0.x [04:43] Like my network is 192.168.1.0, router gives out .100+, so my server is just .2 [04:43] But it MUST match the first 3 groups of numbers (also called octets) [04:43] i see, my ip start at 68.111.168.226, so if I went with something liek .5 then it would work [04:43] ... but... you only have one public IP. [04:43] You have to give it an internal IP address [04:44] Unless you've bought more from your ISP... [04:44] And even then, you would use an internal with NAT to forward the ports, I'd assume. [04:44] Sorry, this laptop kills channels if I accidentally lave it pointed at them [04:44] s/lave/leave/ [04:44] I had it set to 192.168.0.14, i forwarded the port so I could SSH in [04:45] i reset the router and then it reset the ip [04:45] so now it is 68.111.168.226 [04:45] Your router's external IP is that, right? [04:45] if you type ifconfig on the command line [04:45] which is annoying because now I need to change my router setting, my auto ssh etc etc etc [04:45] What's the IP that shows up? [04:45] 68.111.168.226 [04:46] Uhm... what... that shouldn't be possible.... [04:46] why is that? [04:46] my router is 192.168.0.1 [04:46] Yes [04:46] ip start at 68.111.168.226 [04:46] Which means all computers on your network should be 192.168.0.x [04:47] the ip address on my network are [04:47] 68.111.168.226 [04:47] 192.168.0.11 [04:47] Can you explain what you mean by 'ip start at 68.111.168.226' ?' [04:47] 192.168.0.12 [04:47] 192.168.0.13 [04:47] .14 [04:47] .15 [04:48] is that bad? [04:49] thats the output I get from nmap, and also ifconfig/ipconfig etc. [04:49] It's just unusual for you to have an IP like '68.111.168.226' on a local computer [04:49] Unless it's your router's own external address - then that's fine. [04:50] But if your home server is connected to the router just like all the other computers, it should have a local address, unless it's dialing the PPP connection itself. [04:50] Could you please pastebin the output of 'ifconfig' and 'netstat -rn' from the server? I'm just trying to understand what's going on here [04:51] http://paste.ubuntu.com/ or the pastebinit package works pretty nicely [05:04] jasef: Thanks everything worked out perfectly [05:05] jasef: I got my IP setup correctly and everything [05:05] Awesome :) [05:05] wasnt too hard and I didnt have to bust out the monitor and keyboard haha. [05:05] I am off to other things though, just wanted to pop in and say thanks. [08:06] New bug: #886757 in samba (main) "package samba 2:3.5.8~dfsg-1ubuntu2.3 failed to install/upgrade: ErrorMessage: package samba is not ready for configuration cannot configure (current status `half-installed')" [Undecided,New] https://launchpad.net/bugs/886757 [09:34] so i go in and try and make it so i can login to my other box via ssh key which was working fine with a password before i changed the config and now all of a sudden it doesn't work i get Read from socket failed: Connection reset by peer [09:35] even trying to connect to the local machine from the same machine results in the same error [09:35] ssh is started === jhelwig is now known as zz_jhelwig [10:08] http://serverfault.com/questions/265244/ssh-client-problem-connection-reset-by-peer [12:43] heh - Slackware is a free and open source Linux-based operating system. [...] The current stable version is 13.37 === smw_ is now known as smw === jason is now known as jasef [14:51] New bug: #886822 in samba (main) "package samba 2:3.5.8~dfsg-1ubuntu2.3 failed to install/upgrade: ErrorMessage: package samba is not ready for configuration cannot configure (current status `half-installed')" [Undecided,New] https://launchpad.net/bugs/886822 === jaskal_ is now known as jaskal [15:54] New bug: #883813 in php5 (main) "php cronjob high cpu usage" [Undecided,New] https://launchpad.net/bugs/883813 [16:07] New bug: #884163 in openldap (main) "OpenLDAP "UTF8StringNormalize()" Off-by-One Denial of Service Vulnerability" [Medium,Confirmed] https://launchpad.net/bugs/884163 [16:22] New bug: #885758 in samba (main) "'ldap passwd sync = yes' and ldap password not updated" [Undecided,New] https://launchpad.net/bugs/885758 [16:22] New bug: #885904 in php5 (main) "CVE-2011-1148 Use-after-free vulnerability in the substr_replace function allows context-dependent attackers to cause a denial of service" [Undecided,Invalid] https://launchpad.net/bugs/885904 === jason is now known as Guest3984 === Guest3984 is now known as jasef [18:37] I've installed Apache and it works fine. I can verify with http://localhost. I've installed mysql. I've installed php, but when I test with a simple phpinfo.php script using http://localhost/phpinfo.php I get a download dialog box. What am I doing wrong? === zz_jhelwig is now known as jhelwig [18:39] I am using this page as a reference: http://blog.sudobits.com/2011/10/28/how-to-install-lamp-apache-mysql-php-on-ubuntu-11-10/ [18:40] No worries, I figured it out. [18:49] Can someone please test my apache setup? http://http://clarkhome.dyndns-home.com/ [18:51] keithclark, its trying here 69.166.23.54, but port 80 is not open [18:51] hmmmm [18:52] ip address is correct [18:53] firewall or port forwarding ? [18:53] modem to router. Port forwarded [18:55] Or even an ISP often block common server ports. [18:55] i've set it with 'Virtual Servers'. I also have 'Port Forwarding' option as well [18:56] Could someone try again please? [18:57] clarkhome.com works [18:58] ChmEarl, so it changed from not working to working, correct? [18:58] Connecting to www.clarkhome.com|74.125.127.121|:80... connected [18:58] ChmEarl, that is not me [18:59] hangs: Connecting to clarkhome.dyndns-home.com|69.166.23.54|:80... [18:59] hmmmm [19:01] I have my speedtouch modem forwarding that port to my dir-615 router and the router set to port forward to my computer [19:01] Doesn't seem to be working. [19:04] keithclark, if you are on a residential ISP connection, try a different port like 8080 or 8888 forwarded to your local server port 80. Some ISPs have firewalls blocking common server ports. [19:05] Yompa, I'm checking on that now. I've submitted a support ticket. [19:06] keithclark, port 22 is closed too [19:06] or nothing listening [19:06] ChmEarl, I now [19:06] ChmEarl, how about 21? [19:07] its a total blackout [19:07] I would be surprised if it was my ISP. It is a small, local company. No limits and very liberal. I'm thinking it is my router. [19:08] (talk about secure though!) [19:08] morning all... i have several VMs that will be running various web-servers, i want to stick an accelerator in the mix to forward requests to certain machines based on FQL , i need some advise on what to use, is squid overkill ? how about Varnish ? [19:09] keithclark, some technical sites provide a port scanner [19:09] I have port 8080 forward inside my LAN to a Xen guest... imagine how long that took to setup [19:11] Funny, on Primus it was no issue at all. I was sure they would have blocks on the common ports but it worked out just fine. [19:14] keithclark, here is one: http://www.subnetonline.com/pages/network-tools/online-port-scanner.php [19:15] check the ToS box first [19:18] dork: ping [19:18] thanks ChmEarl [20:19] Ok, port 80 is not blocked by my isp [20:21] But still the port is closed [20:25] I just cannot get through [20:27] Any ideas? [20:29] are you connected to here through said internet connection? [20:29] Yup [20:32] well, it's not answering connections on 80 or 21, they time out [20:32] Yup....not sure why [20:33] if they were making it to your server, they'd be refused or accepted unless otherwise configured in the firewall [20:33] so they have to not be getting there at all, which means either router config or ISP [20:33] Yup. ISP assures me no blocking of any ports [20:33] Modem is forwarding all 80 and 21 ports to the router. [20:34] Router is forwarding 80 and 21 to this machines ip address [20:34] try forwarding a nonstandard port just to test [20:34] above 1024 [20:35] I tried 5222, still nothing [20:37] then I'm going to have to say router [20:37] Yeah, throw it out an get another? [20:37] could be, a lot of them really overcomplicate things and bury settings [20:38] if you can't find any substantial information on it, I'd get something else [20:38] I've been through 3 of these routers! [20:39] trying to do this, or they just failed? [20:39] Yup, same issue. [20:39] also, same ones/brand, or different [20:39] different brands [20:39] I'm thinking Ubuntu [20:40] if ifconfig returns the address you expect, try browsing from a different computer [20:41] browsing? I have 2 other machines that browse find plus my ps3 [20:41] *fine [20:41] browsing to your ubuntu server [20:41] e.g. http://192.168.1.123 [20:41] I will try that [20:44] the thing is, if you're getting to ubuntu but it's misconfigured, you'd get a connection refused, not a time out [20:44] so it has to be something with the networking [20:44] hmmm [20:44] maybe it doesn't have the IP you think it does, or something is wrong with the NIC/cable/switch/etc [20:45] all of which you can troubleshoot by attempting to get to it from the LAN [20:46] by default ubuntu has an accept all firewall policy [20:46] any recommendations for a "load balancer/forwarder" to use for a couple of VMs hosting web applications ? i have only one public Ip available [20:47] local access works [20:49] I can get to this machine from another on my LAN [20:50] ok, can the ubuntu box get to the internet? default gateway and nameservers working [20:50] Yes, I'm typing from it [20:50] then it has to be the router config [20:51] ubuntu knows how to get to the internet and accept connections from your network [20:51] double check the IP on your ubuntu with ifconfig [20:52] and make sure it's right in the router [20:52] Checked many times. Just did it again and all is fine. [20:52] also, try the DMZ setting if it has one [20:52] Yup, only one router [20:52] and turn off any SPI firewalls on the router [20:53] accept wan ping, no filtering [20:53] dmz did not work [20:54] spi off [20:54] pings are not getting through to you [20:54] Most secure system on the web today! [20:55] what does your network layout look like? systems - router - modem - internet? or combo router/modem [20:56] speedtouch on 192.168.1.254 to dlink dir-615 router [20:56] if you have the former, but your modem is actually a router/modem, that could be the problem [20:56] the modem would then need to DMZ your router [20:57] Firewall on the speedtouch is disabled [20:58] I have the very same modem on Primus at another location with another router and it works fine [20:58] well, your IP is not answering ping or any TCP connections on common ports [20:59] I know [20:59] so something is blocking them, the modem is first in line and therefore first to check [21:00] read: even if port forwarding doesn't work, it should be answering ping [21:01] yup, I understand [21:01] LIke I said, the most secure connection on the planet [21:10] Well, I'm at a loss here. Not sure what to try next, if anything. [21:13] well, we've established it's not an ubuntu problem [21:13] if your modem is ISP provided, call them [21:13] I already have [21:14] "Port 80 is not blocked" [21:14] yes, but tell them your modem won't respond to ping and you can't forward any ports [21:15] if it's routing, it should do both of those things [21:15] if it's bridging, your router is responsible for doing those things [21:15] don't take this the wrong way, but it's not magic, it's a pretty straightforward setup [21:16] one of the two is currently holding your internet IP, and is responsible for pings and forwarding [21:16] if it's not doing those things, it's either misconfigured or defective [21:17] I will do, thanks [21:17] if the modem is routing, it needs to DMZ your router, which then port forwards to your LAN [21:18] otherwise your router should be holding your internet IP on its WAN interface [21:20] I've emailed my isp concerning this. I've never heard of a bad modem though [21:21] having such a specific problem with no other issues is rare, but it does happen [21:21] Well, we shall see. [21:21] configuration is far more likely, but in either case, you need to establish which device is responsible for answering pings [21:21] and find out why it isn't [21:22] once that's solved, you can move on to port forwarding if it still doesn't work [21:22] what speedtouch modem is it ? [21:23] ST516 is what shows on the webpage [21:24] I have charter, but most of the customers I deal with at work have comcast with SMC modems [21:24] and they can fail quite spectacularly [21:27] Let's see how my ISP responds. They are pretty friendly. [21:28] The only other difference in my two setups is that this machine runs 11.10. [21:28] I hope that is not the problem [21:29] it has nothing to do with the problem [21:29] problem is that traffic isn't getting there in the first place [21:29] that's not to say it couldn't cause some other problems, but you'll have to get this working before you'd ever see them [21:43] Ok, I'll wait to hear from my ISP [23:16] Is there a place in ubuntu to store a global ssh known_hosts file? [23:19] I tried /etc/ssh/ssh_known_hosts, but that doesn't seem to work. [23:28] I tried even copying my ~/.ssh/known_hosts to /etc/ssh/ssh_known_hosts, but that doesn't work either. Any ideas? [23:30] imho that shouldn't be global [23:31] New bug: #886953 in samba (main) "smbstatus does not reliably detect that a samba connection is in use." [Undecided,New] https://launchpad.net/bugs/886953 [23:32] RoyK, I need it to be [23:32] why? [23:33] RoyK, I'm using puppet to manage server configurations. Servers need to be able to do git checkouts from various git servers. I don't want to have to manage a "known_hosts" in the ssh directory of every user that needs it. [23:33] RoyK, at any rate, what's wrong with the global ssh_known_hosts? It's owned by root, and is mode 600 [23:34] So security-wise it's no different than any other user's known_hosts [23:34] if you're using puppet from the root user, it's not an issue [23:34] just update that file [23:35] Oh, hmm.. that's why I'm getting errors, because it's not the root user doing the checkout. [23:36] guess I need to figure something else out [23:36] I guess I assumed that the global ssh_known_hosts file would apply to all users. But that would make it less secure, I guess [23:38] Although, what's the point of /etc/ssh/ssh_known_hosts if only root can read it?