[ask]network error:connection refused

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

[ask]network error:connection refused

Postby rafdinal » 15 Jul 2011, 16:55

nanya-nanya lagi gann,,ubuntu server 11.04 squid aku kok lama kali konek ke network saat booting,,hampir 3 mnt baru kenek ke network nya,,kalau di remote via putty gini : "network error:connection refused",,nunggu kira2 3 mnt baru bisa konek dan log in..ada apa ya gann seperti ini???...

thank's gann..

jaya ubuntu indonesia untuk bersama.. :)
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask]network error:connection refused

Postby yudiarbi » 15 Jul 2011, 19:16

wah perlu analisa bareng tuh, pertama gmn setting network interface?trus service1 apa saya yg di install?trus selalu perhatikan log2 awal booting.,..
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]network error:connection refused

Postby rafdinal » 15 Jul 2011, 20:20

@yudiarbi,,gimana cara liat log2 booting nya gann??,,aplikasi yg di install squid dan open ssh waktu awal install ubuntu nya..
setting network interface dgn sudo pico /etc/network/interface ..gitu aja gann..
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask]network error:connection refused

Postby yudiarbi » 15 Jul 2011, 23:04

di daemon.log biasanya kelihatan, ato kl mau coba direstart smbl dipelototin ap ada yg error pas booting
yap bener, di post di /etc/network/interfaces..
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]network error:connection refused

Postby rafdinal » 16 Jul 2011, 09:05

ini liat di /var/log/boot.log gann :
gibrannet@gibrannet:~$ sudo tail -f /var/log/boot.log
total fs tree bytes: 633110528
btree space waste bytes: 240648013
file data blocks allocated: 2739372032
referenced 2736099328
Btrfs Btrfs v0.19
init: ureadahead-other main process (560) terminated with status 4
* Starting AppArmor profiles [ OK ]
* Starting Squid HTTP proxy squid [ OK ]
apache2: Could not reliably determine the server's fully qualified domain name, using

192.168.3.2 for ServerName
* Starting web server apache2 [ OK ]
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]network error:connection refused

Postby rafdinal » 16 Jul 2011, 09:09

ini gann /etc/network/interfaces:

gibrannet@gibrannet:~$ sudo pico /etc/network/interfaces
GNU nano 2.2.6 File: /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.3.2
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255
gateway 192.168.3.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.3.1
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask]network error:connection refused

Postby yudiarbi » 16 Jul 2011, 12:45

ini disharing ke banyak komputer kan?trus mode modem gmn?
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]network error:connection refused

Postby rafdinal » 16 Jul 2011, 13:37

@yudiarbi,, client---switch----mikrotik----modem
|
squid

modem bridge..
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask]network error:connection refused

Postby yudiarbi » 16 Jul 2011, 21:28

berarti semua service ud jl ok, dr topologi, berarti router di mikrotik?gateway proxy squid ikut mikrotik kan?takut terjadi double nat nih....., cb post ip lengkap masing2 node jaringan....
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]network error:connection refused

Postby rafdinal » 16 Jul 2011, 23:49

@yudiarbi

client----switch----192.168.0.1/24 (mikrotik)192.168.1.2----modem
192.168.3.1
|
|
192.168.3.2
linux (squid)

ip modem=192.168.1.1
ipclient=192.168.0.2--192.168.0.14 dial pppoe dari mikrotik
linux ke port ether3 mikrotik
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask]network error:connection refused

Postby yudiarbi » 17 Jul 2011, 08:15

gateway proxy arahin ke mikrotik, posting juga routing2 di mikrotik...
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]network error:connection refused

Postby rafdinal » 17 Jul 2011, 08:43

@yudiarbi,,double NAT maksudnya gimana bro??..
User avatar
j3l4g4
Posts: 28
Joined: 15 Jul 2011, 10:00
Location: balikpapan, Borneo-KALTIM
Contact:

Re: [ask]network error:connection refused

Postby j3l4g4 » 17 Jul 2011, 09:51

IMHO,

Newbie coba bantu kawan,

Sepertinya ada beberapa services yang berjalan secara bersamaan pada proses booting awal, Mungkin bisa di lakukan cara ini kawan terlebih dahulu :

1. Matikan services default yang berjalan pertama pada proses booting awal dengan cara ;

# sudo update-rc.d -f squid remove

2. Buatlah sebuah file dengan nama squid.services terserah mau di letakkan di folder sembarang tetapi perlu diingat letaknya :

# sudo nano /home/user/squid.services

---> isi dengan script berikut

sleep 5

/etc/init.d/squid start

---> kemudian simpan file tersebut ctrl+x dan tekan [y] yes

3. Tambahkan baris rc.local dengan letak file squid.services beserta folder tempat ditaruhnya :

# sudo rc.local

---> letakkan sebelum tulisan exit 0

/home/user/squid.services

exit 0

---> kemudian simpan

4. Maksud dari perintah di atas adalah :

- sleep 5 = menunda sebuah proses yang berjalan secara default dengan menggantinya pada urutan ke-5 atau di kondisikan pada kebutuhan kita kapan harus di eksekusi services tersebut

- rc.local = menjalan proses secara manual dengan mengeksekusi sebuah file yang berisikan baris sebuah command/perintah untuk ekseskusi.

Mudahan membantu kawan....

CMIIW
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]network error:connection refused

Postby rafdinal » 17 Jul 2011, 11:10

@j3l4g4,,apakah nanti squid bisa aktif(start) saat boot??..
apakah gak perlu lg bikin :sudo update-rc.d squid defaults

thank's sarannya..
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask]network error:connection refused

Postby yudiarbi » 17 Jul 2011, 11:35

tp secara default daemon log, squidnya ud jalan kayake,kl squid ud jalan, di"paksa" di situ aq kira sama aj, jd ttp mgkn di urusan routing ke squidnya....
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]network error:connection refused

Postby rafdinal » 17 Jul 2011, 12:06

@yudiarbi,,routing ke squid nya dari mikrotik
chain=dstnat src address=192.168.0.0/24 protocol=tcp dst port=80
action=dst-nat toAddress=192.168.3.2 toPort=3128

lalu nat unutk ip squid nya :
chain=srcnat srcaddress=192.168.3.0/24 action=masquarade

nat untuk ip client:

chai=srcnat srcaddress=192.168.0.0/24 action=masquarade
User avatar
j3l4g4
Posts: 28
Joined: 15 Jul 2011, 10:00
Location: balikpapan, Borneo-KALTIM
Contact:

Re: [ask]network error:connection refused

Postby j3l4g4 » 17 Jul 2011, 17:48

gibrannet wrote:@j3l4g4,,apakah nanti squid bisa aktif(start) saat boot??..
apakah gak perlu lg bikin :sudo update-rc.d squid defaults

thank's sarannya..


udah di coba belum yaa..., kalo di lihat konfigurasinya sih harusnya bisa berjalan karena udah di manual pada config rc.local.

CMIIW
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]network error:connection refused

Postby rafdinal » 17 Jul 2011, 19:26

srcnat nya udah diganti 1 aja:

chain=srcnat out-interface=pppoe-out1 action=masquarade
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]network error:connection refused

Postby rafdinal » 17 Jul 2011, 19:28

@j3l4g4 ,,sudo rc.local gak bisa di buka,,
apa gak sudo pico /etc/rc.local ??>..
User avatar
rafdinal
Posts: 131
Joined: 22 Jun 2011, 20:01

Re: [ask]network error:connection refused

Postby rafdinal » 18 Jul 2011, 01:12

@yudiarbi,,ip routes mikrotik :

Dst Address gateway distance pref source
DAS >> 0.0.0.0/0 125.162.xx.x 1
DAC >> 125.162.xx.x pppoe-out1 reac 0 125.162.xx.xx
DAC >> 192.168.0.0/28 lokal reachable 0 192.168.0.1
DAC >> 192.168.1.0/24 speedy reachable 0 192.168.1.2
DAC >> 192.168.3.0/24 proxy reachable 0 192.168.3.1

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 1 guest