=== lubotu2` is now known as lubotu2 [03:01] hello [03:01] need help here [03:04] what's the problem Tyrone? [03:05] can you speak bisaya? [03:05] or tagalog only? [03:06] not visaya though [03:06] i have a problem in my ubuntu [03:06] please describe your problem [03:08] meron ako ubuntu tapos layout ng internet ko ganina modem ubuntu tapos switch then pc [03:08] ang prob is yong pc na naka connect sa switch tapos switch inyo ubuntu ayaw magka internet [03:09] i tried everything pero ayaw parin [03:09] via ethernet? [03:10] naka-setup ba router/modem mo as dhcp? or static ip? [03:10] hmmm... could be NAT misconfiguration, dhcp, or dns. [03:10] anong modem? from pldt ba? [03:11] opo [03:11] zyzel [03:11] zyxel [03:11] the same one that i have, pero i don't think it supports dhcp by default, i have to use a router [03:12] unless you hack it, are you sure na switch gamit mo? hindi router? [03:12] pero yong ubuntu ko meron internet [03:12] switch po [03:12] modem router na daw kasi tong modem ng pldt [03:13] yeah, pero supports only one connection at a time [03:13] it can't handle multiple connection without a switch [03:13] wait [03:13] so ung setup mo ganito: internet->modem->switch->ubuntu [03:13] nope internet modem ubuntu switch [03:13] *it can't handle multiple connection without a switch [03:14] *it can't handle multiple connection without a router [03:14] arrrgghhh [03:14] ganun ba [03:14] ok, so kelangan mo lang ng routing application [03:15] so ung ubuntu mo na ang magiging router where other pcs would connect via switch? right? [03:15] paano yon? [03:16] opoh [03:16] if that's the case, then try installing firestarter or guidedog [03:16] it'll handle your nat requirements [03:16] http://www.fs-security.com/docs/connection-sharing.php [03:17] Tiny URL: http://tinyurl.com/qzfe5 (URL by Knightlust) [03:17] http://www.simonzone.com/software/guidedog/manual/ [03:17] na try ko na po yan ayaw parin eh [03:17] Tiny URL: http://tinyurl.com/5ujdgvw (URL by Knightlust) [03:17] na-try mo na firestarter's nat? [03:17] Terminus: any ideas? [03:18] i don't have firestarter or guidedog installed, so i can't walk you through [03:19] Knightlust: no easy ideas. i'd just throw iptables inside rc.local, configure dhcpd and named. and switch on ip forwarding. =) [03:20] but it might be overkill for Tyrone [03:20] i try ip forwarding ayaw eh [03:20] Knightlust: that's why i said no easy ideas. =) [03:20] firestarter's the easiest i've tried back then, 3yrs to be exact [03:20] Tyrone: try mo muna basic setup ng firestarter [03:21] it should connect [03:21] Knightlust: the first question would be, is the modem a zyxel p-600? is configured as a bridge or nat? you might end up with a double nat. [03:21] yes zyxel p600 [03:21] my p-600's configured by default as bridged [03:22] we need to hack it to enable nat, which pldt doesn't support [03:22] the zyxel p-600 can also be configured as a router (not nat) but i wouldn't expect that on a home connection. [03:22] IIRC, the password for the zyxel is just 1234. XD [03:22] p660 [03:23] Tyrone: ung pcs mo na naka-connect sa switch, configured ba to connect via dhcp? can it ping the ubuntu machine? [03:23] i can access the pldt [03:23] static po [03:23] internet cafe kasi to [03:24] ah... so it has a static IP address. does it require PPPoE authentication or not? [03:25] heh, this conversation's reminiscent of my at&t call center days [03:25] ROFL [03:25] in my general in wan [03:25] name internet [03:25] mode routing [03:25] Tyrone: ok, so it can ping the pldt box? then it's configured as a router [03:25] encapsulation ppoe [03:25] kasi kung naka-bridge yung pldt modem mo, hindi mo dapat mapi-ping yan e [03:26] tapos in nat setup naman [03:26] yep. business dsl still use pppoe auth i think. we definitely use it here. [03:26] naka active network address translation tapos SUA only [03:27] Knightlust: manually configuring the ip address while in bridge mode will allow you to access the CPE. =) [03:27] yep. you'll end up with a double NAT if you use the linux box for NAT as well. not really the best thing to do. [03:27] yeah, but won't xyzel automaticall revert to router-mode once you ping(ed) it? [03:28] Knightlust: nope. i've used it to fool around with the modems at home and here at the office. =) [03:28] any luck than i can use the ubuntu ? [03:28] by the way [03:28] PLDT didn't leave me the PL number and password so DOM inspection to the rescue! XD [03:29] i want to ubuntu to ack as a squid proxy server [03:29] heh, good ol' google did it for me. but i did void the warranty [03:29] Tyrone: if you remove the ubuntu machine, can the other clients connect to the internet then? [03:30] yes [03:30] ok, so router-mode nga sya [03:30] then you'll need to read up on iptables [03:30] :( [03:30] nose bleed na ako sa ip table na yan [03:30] hahahahaha [03:30] Tyrone: there is, but the configuration may be more complex. worst case scenario, you'll have to configure pass-through pppoe and have the linux box do the dialup. [03:30] if so, then why would you need a proxy server? [03:31] exactly, it'll be easier that way [03:31] or, are you trying to instead setup dansguardian? [03:31] because here in our internet cafe the online games will lag if somebody use youtube [03:31] nope [03:32] i see [03:32] i have just install squid [03:33] matanong ko lang pwd naba install teamviewer dito sa ubuntu 10.10? [03:33] have you tried guidedog? it may be more effective than firestarter [03:33] papaacess ko sana sainyo to check if the setup is right [03:33] afaik, there's a teamviewer client for ubuntu [03:33] can't at the moment, am currently at work [03:34] but if you setup the ubuntu box for ip passthru, would squid work? [03:35] yes [03:36] that's beyond me right now. i'll be at home by 6PM, i'll try guidedog or firestarter later [03:36] your from manila? [03:37] baguio [03:37] ahh cool [03:37] dati ako sa olongapo city [03:37] pero dito na ako sa cagayan de oro [03:37] nice. so, how's the weather? [03:38] hot, i assume [03:38] cloudy [03:38] not that hot..\ [03:38] Knightlust: by the way in my eth0 gawin ko ba dhcp? tapos yong eth 1 naka static tama po ba? [03:39] good bandwidth control is typically a very complicated thing. [03:39] only if eth0 is the one that's connected to the modem [03:40] yes eth0 is connected to it [03:41] can the clients ping the ubuntu box? [03:41] no [03:41] ok, have you tried checking the their netmasks? [03:42] or subnet, or whatever term windows uses these days [03:43] ang ginawa kong ip ng eth1 is 192.168.1.34 sub 255.255.255.0 gateway wala.. [03:43] that may be the problem you have [03:43] ok, anong subnet ng clients mo? i would assume it's the same thing [03:43] er... any firewall installed on your ubuntu box? [03:44] another question, can the clients ping other clients [03:45] also, can the clients ping the pldt modem *with* the ubuntu box connected between the modem and the switch [03:45] not [03:45] no [03:45] they cant [03:45] the client ip add is 192.168.1.100 [03:46] can the clients ping each other? [03:46] hndi ko pa na try [03:47] isang pc palang kasi ni try ko kinabit eh [03:47] i see, nvm then [03:47] wait, lemme think this through [03:47] :) [03:47] sorry for disturbing you [03:48] np, still compiling anyway [03:49] ok, let's try basic troubleshooting [03:50] if only we could get the client to ping the ubuntu box [03:50] then methinks we'll be halfway through setting up your proxy server [03:51] but i see no reason not to be able to ping the ubuntu box, since it doesn't block icmp packets by default [03:53] Knightlust: you're doing C++ dev? [03:53] Terminus: c++, php, java, python [03:53] but at the moment, i'm compiling mariadb [03:54] Tyrone: can you post the output of ifconfig -a [03:54] also netstat -rn [03:54] Tyrone: er.. use pastebin pala [03:57] Knightlust: can you use teamviewer to access my ubuntu? [03:58] i can, but not at the moment, i'm still at work [03:58] ah kk [03:58] Knightlust: ah... was wondering why you were compiling. =) [03:58] anong oras pwd? [03:59] 6pm [03:59] more or less, depending on my workload [03:59] pero at the moment, i don't think it's an ubuntu config problem [04:00] more like misconfigured settings [04:00] maybe [04:00] walang prob sa ubuntu [04:01] Tyrone: if you use eth1 to connect to the modem and internet via dhcp, can it connect? [04:01] sa settings lang ata to para ma access ng ibang pc yong internet [04:01] yes [04:01] ok, did you use network manager to setup the static ip address? [04:02] yes [04:02] wait, i think there's a setting in nm that you need to check [04:03] ok [04:03] open it up, go to the ipv4 settings tab, click on the routes button [04:04] and then there's one little checkbox option at the bottom, forgot what it's called [04:04] google images fails me [04:05] ok wait [04:05] il turn my ubuntu [04:05] ayun, check the "use this connection for resources on its network" [04:05] kk im using my laptop [04:05] http://img259.imageshack.us/i/screenshoteditingipv4ro.png/sr=1 [04:05] Tiny URL: http://tinyurl.com/3f6ey83 (URL by Knightlust) [04:06] then try pinging the ubuntu box one more time [04:06] kung talagang ayaw, i'm out of ideas na [04:08] kk access mo lang mamaya ubuntu ko try ko install teamviewer para makita mo setup ng network interfaces ko [04:09] ok [04:09] see you later then, late na pala ako sa meeting [04:09] later guys [04:11] kk thanks [04:13] Terminus: youthere? [04:24] Tyrone: yes? [04:25] my modem router mode is routing not bridge [04:26] Tyrone: yep. i got that earlier. your configuration may require reconfiguring the modem as well. [04:27] ah ok [06:48] hllo [07:32] hello === deng_c is now known as deng [09:29] Knightlust: you there? [10:01] hola [10:02] I wonder if natty is good for NAT :P [10:04] why wouldnt it be? [10:04] hello zakame [10:04] thanks god your here [10:04] :) [10:05] sir pa help naman [10:05] hehe yeah it would be bad for natty if it couldn't do nat [10:05] sure what's the prob? [10:05] meron ksi ako ubuntu 10.10 [10:06] tapos setupko internet modem ubuntu switch then pc [10:06] kasu yong pc ayaw maka internet yong ubuntu lang [10:07] ubuntu as a switch? is the ubuntu a desktop or laptop? [10:08] desktop [10:08] intel board xeon proc [10:08] gagawin ko kasi sana proxy server [10:08] dito sa cafe namin [10:08] ahh [10:08] para yong mag youtube hndi mag lag online games [10:09] pwd po kita ma private chat? [10:09] looks like you want to do a network gateway [10:09] not just a switch [10:09] parang ganun na po [10:09] kasu nose bleed na ako eh [10:10] and maybe some traffic shaping too [10:10] sir gusto mo po ma kita meron teamviewr ako [10:10] pwede but I'm on mobile lol [10:11] hndi pala pwd ma install teamviewr sa ubuntu [10:11] :( [10:11] ganun po ba.. [10:11] no as in I'm on IRC via my phone hehe [10:11] I could give you a few pointers though [10:11] meron thn nag sabi sakin na maganda daw traffic shaping.. [10:12] ahh kk.. cgi2 il try [10:12] the first thing you have to make sure is that your ubuntu box is ready to do IP forwarding [10:13] how to know if its ready sir? [10:13] so you have to see that in /etc/sysctl.conf there's a line [10:13] net.ipv4.ip_forward=1 [10:14] alternatively you can check on a root prompt [10:14] e.g. sudo sysctl net.ipv4.ip_forward [10:14] it has to be set to 1 [10:14] so your ubuntu box can forward packets between interface [10:15] 0 po lumabas sir [10:15] (zero) [10:16] that means your box doesn't forward yet [10:16] how can i make it 1 sir? [10:16] sorry im new in ubuntu... [10:16] set it via sudo sysctl net.ipv4.ip_forward=1 [10:17] done sir [10:17] check it again [10:17] its now 1 sir [10:17] cool [10:18] edit /etc/sysctl.conf to have that line (I think it is there already, just commented out) [10:18] so you don't lose that setting across reboots [10:19] its set to 1 sir [10:19] cool [10:19] nabuksan ko na conf [10:20] then next up is setting up iptables [10:20] :( [10:20] nose bleed ako jan.. [10:20] il just do my best... [10:20] ano next sir [10:20] iptables by itself is hard, but there's a bunch of packages in debian/ubuntu that ease it somewhat [10:20] what we use in the office here for example is shorewall [10:21] ? [10:21] pwd yan rin gamitin ko [10:21] o hndi pwd? [10:21] yeah you can use that, there's a package [10:21] what's the command sir to install it? [10:22] apt-get that, and in a little while you should have a simple shorewall running [10:22] apt-get install shorewall [10:22] by the way sir meron na pala na install na squid nito [10:22] ok lang ba? [10:23] no prob [10:23] done installing [10:24] cool [10:24] now here's a quickstart guide to set up a two-interface firewall doing forwarding from the modem to your lan: http://shorewall.net/two-interface.htm [10:25] I suggest you read it thoroughly first, then try it on the ubuntu box [10:25] you probably need to to set up dhcpd and a dns server later on that same machine as well [10:26] wew [10:26] so your client pc boxes can get IP addresses and resolve remote domains [10:26] nose bleed nanaman ako nito [10:26] hehehe [10:26] hehe [10:26] naka static ip mga pc dito sir [10:26] ah no need for dhcpd then [10:27] like from pc 1 to 15 ip nila 192.168.1.101 then 192.168.1.102 [10:27] ah [10:27] yan naka setup sakanila sir [10:27] looks like a 192.168.1/24 subnet [10:27] prang ganun sir [10:27] you'll need that info once you set the masq [10:29] sir kailangan ko ba type lahat andun sa site na binigay mo? [10:31] not really, like i said, read throughly and find what's really needed :) [10:31] ok [10:31] thank you.. [10:32] most important is that you set the /etc/shorewall/{zones,policy,masq} [10:34] kk il look for that [10:35] sir in eth0 wher the internet connected kailangan ba naka dhcp? then yong eth1 static? [10:38] yeah [10:39] ok [10:40] sir yong setup pala ng pldt modem is routing tapos pppoe [10:42] oh [10:43] I think you'llneed to replace eth0 then to use pppoe [10:43] if that in another interface [10:43] what does ifconfig -a say? [10:44] sir marami naka sulat eh [10:44] meron eth0 and eth1 [10:46] ano po kailangan nyo makita sir para yon nalang lagay ko dito === rstacruz- is now known as rstacruz === rstacruz- is now known as rstacruz [11:23] wew [11:23] ayaw parin [11:23] hahahaha [13:12] hello === Tyrone_ is now known as Tyrone [16:38] weEeeeEe love ubuntu hehee