Bagi ke facebook

Latest Post
Showing posts with label Networking. Show all posts
Showing posts with label Networking. Show all posts

Problem starting Apache 2.2.0 Freebsd

Written By Nusantara Voice on Saturday, November 26, 2011 | 11:15 AM

[root@pisangraja ~]# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Stopping apache22.
Waiting for PIDS: 11416.
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Starting apache22.
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Just fix your hosts file and httpd conf
1. Edit hosts file :
[root@pisangraja ~]# hostname
pisangraja.jc
[root@pisangraja ~]# vi /etc/hosts
::1                     localhost
127.0.0.1               localhost
192.168.12.200          pisangraja
192.168.12.200          pisangraja.jc
2. Edit httpd conf
[root@pisangraja ~]# vi /usr/local/etc/apache22/httpd.conf
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn’t have a registered DNS name, enter its IP address here.
#
ServerName www.pisangraja.jc:80
[root@pisangraja ~]# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
Syntax OK
apache22 not running? (check /var/run/httpd.pid).
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.

Address already in use: make_sock: could not bind to address 0.0.0.0:80

apache Logo 
root@jakal [~]# /etc/init.d/httpd restart
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
root@jakal [~]# lsof -i tcp:80

COMMAND   PID   USER   FD   TYPE   DEVICE SIZE NODE NAME
mysql   12887 nobody    3u  IPv4 14388423       TCP *:http (LISTEN)
root@jakal [~]# kill -9 12887

root@jakal [~]# /etc/init.d/httpd restart

httpd not running, trying to start
root@jakal [~]#


VPN adalah singkatan dari virtual private network, yaitu jaringan pribadi (bukan untuk akses umum) yang menggunakan medium nonpribadi (misalnya internet) untuk menghubungkan antar remote-site secara aman. Perlu penerapan teknologi tertentu agar walaupun menggunakan medium yang umum, tetapi traffic (lalu lintas) antar remote-site tidak dapat disadap dengan mudah, juga tidak memungkinkan pihak lain untuk menyusupkan traffic yang tidak semestinya ke dalam remote-siteVPN adalah singkatan dari virtual private network, yaitu jaringan pribadi (bukan untuk akses umum) yang menggunakan medium nonpribadi (misalnya internet) untuk menghubungkan antar remote-site secara aman. Perlu penerapan teknologi tertentu agar walaupun menggunakan medium yang umum, tetapi traffic (lalu lintas) antar remote-site tidak dapat disadap dengan mudah, juga tidak memungkinkan pihak lain untuk menyusupkan traffic yang tidak semestinya ke dalam remote-sit
Konfigurasi Virtual Private Network (VPN) Connection menggunakan Windows XP :
1. Masuk ke Menu Control Panel
Control Panel
Control Panel
2. Pilih Network Connections
Network Connections
Network Connections
3. Pilih Menu New Connection Wizard
New Connection Wizard
New Connection Wizard
4. Klik Next pada windows “Welcome to the new connection wizard”
Welcome to the new connection wizard

5. Pilih “Connect to the network at my workplace”
Connect to the network at my workplace
Connect to the network at my workplace
6. Pilih “Virtual Private Network Connection”
Virtual Private Network Connection 

7. Create Connection Name
Connection Name
8. VPN Server Name atau IP Adress VPN Server
VPN Server Name atau IP Adress VPN Server
VPN Server Name atau IP Adress VPN Server
9. Completing the New Connection Wizard
Completing the New Connection Wizard
Completing the New Connection Wizard
10. Connect to VPN Server
Connect to VPN Server
Connect to VPN Server

username and password 
11. VPN is now connected
VPN is now connected
VPN is now connected

Nagios : CRITICAL – Could not interpret output from ping command


Nagios
Nagios
Host Status:
DOWN
(for 0d 0h 48m 36s)
Status Information:
/bin/ping -n -U -w 30 -c 5 67.15.225.4
CRITICAL – Could not interpret output from ping command

solusi :
root@concat [/usr/local/nagios/etc]# ls -al /bin/ping
-rwxr-xr-x 1 root root 35864 Dec 21  2006 /bin/ping*
root@concat [/usr/local/nagios/etc]# chmod u+s /bin/ping
root@concat [/usr/local/nagios/etc]# ls -al /bin/ping
-rwsr-

10 Langkah Setting Router sederhana menggunakan MikroTik

Contoh Kasus :
PC CLient — > Switch –> Router —> Internet
IP PUBLIC : x.y.z.pub/29
DNS : x.y.z.dns1 dan x.y.z.dns2
Gateway : x.y.z.gw
IP address LOCAL ROUTER : 192.168.100.1/24
IP address Client : 192.168.100.2/24
Catatan : Sesuaikan Hardware, IP Address, DNS, Gateway dengan yang anda miliki
Hardware :
Router :  RouterBoard 1000 (Mikrotik v3,19 Stable)
Mikrotik RB1000
Mikrotik RB1000

Switch : D-Link DES-3026 Ethernet Switch
D-Link DES-3026 Ethernet Switch
D-Link DES-3026 Ethernet Switch
PC Client : PowerBook G4
Powerbook G4
Powerbook G4
Setting ROUTER
1. Ganti default password Mikrotik

[admin@titik.org] > /user set admin password=whatever
2. Rename ethernet name :
[admin@titik.org] > /interface print
Flags: D – dynamic, X – disabled, R – running, S – slave
#     NAME                                              TYPE             MTU
0  R  ether1                                            ether            1500
1     ether2                                            ether            1500
2     ether3                                            ether            1500
3  R  ether4                                            ether            1500
[admin@titik.org] > /interface set ether1 name=IP-LOCAL
[admin@titik.org] > /interface set ether4 name=IP-PUBLIC
[admin@titik.org] > /interface print
Flags: D – dynamic, X – disabled, R – running, S – slave
#     NAME                                              TYPE             MTU
0  R  IP-LOCAL                                          ether            1500
1     ether2                                            ether            1500
2     ether3                                            ether            1500
3  R  IP-PUBLIC                                         ether            1500
3. Setting IP Address
[admin@titik.org] > /ip address add address=x.y.z.pub/29 interface=IP-PUBLIC
[admin@titik.org] > /ip address add address=192.168.100.1/24 interface=IP-LOCAL
[admin@titik.org] > /ip address print
Flags: X – disabled, I – invalid, D – dynamic
#   ADDRESS            NETWORK         BROADCAST       INTERFACE
0   x.y.z.pub/29            x.y.z.168               x.y.z.175              IP-PUBLIC
1   192.168.100.1/24   192.168.100.0   192.168.100.255 IP-LOCAL
4. Setting Gateway
[admin@titik.org] > /ip route print
Flags: X – disabled, A – active, D – dynamic, C – connect, S – static, r – rip, b – bgp, o – ospf, m – mme,
B – blackhole, U – unreachable, P – prohibit
#      DST-ADDRESS        PREF-SRC        GATEWAY-STATE    GATEWAY       DISTANCE INTERFACE
0            ADC                    x.y.z.168/29                x.y.z.pub                             0             IP-PUBLIC
1            ADC              192.168.100.0/24        192.168.100.1                       0             IP-LOCAL
[admin@titik.org] > /ip route add dst-address=0.0.0.0/0 gateway=x.y.z.gw
[admin@titik.org] > /ip route print
Flags: X – disabled, A – active, D – dynamic, C – connect, S – static, r – rip, b – bgp, o – ospf, m – mme,
B – blackhole, U – unreachable, P – prohibit
#      DST-ADDRESS        PREF-SRC        GATEWAY-STATE      GATEWAY      DISTANCE INTERFACE
0      A S  0.0.0.0/0               reachable                x.y.z.gw                             1             IP-PUBLIC
0            ADC                    x.y.z.168/29                x.y.z.pub                             0             IP-PUBLIC
1            ADC              192.168.100.0/24        192.168.100.1                       0             IP-LOCAL
5. Test Ping Gateway
[admin@titik.org] > /ping x.y.z.gw
x.y.z.gw 64 byte ping: ttl=64 time=1 ms
x.y.z.gw 64 byte ping: ttl=64 time=1 ms
x.y.z.gw 64 byte ping: ttl=64 time=1 ms
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 1/1.0/1 ms
6. Setting DNS
[admin@titik.org] > /ip dns print
primary-dns: 0.0.0.0
secondary-dns: 0.0.0.0
allow-remote-requests: no
max-udp-packet-size: 512
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 4KiB
[admin@titik.org] > /ip dns set primary-dns=x.y.z.dns1 secondary-dns=x.y.z.dns2 allow-remote-requests=yes
[admin@titik.org] > /ip dns print
primary-dns: x.y.z.dns1
secondary-dns: x.y.z.dns2
allow-remote-requests: yes
max-udp-packet-size: 512
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 10KiB
7. Test Koneksi Ke Internet (contoh ping yahoo.com)
[admin@titik.org] > /ping yahoo.com
206.190.60.37 64 byte ping: ttl=48 time=300 ms
206.190.60.37 64 byte ping: ttl=48 time=299 ms
206.190.60.37 64 byte ping: ttl=48 time=316 ms
206.190.60.37 64 byte ping: ttl=48 time=316 ms
206.190.60.37 64 byte ping: ttl=48 time=311 ms
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 299/308.4/316 ms
8. Setingg NAT (Network address Translation)
[admin@titik.org] > /ip firewall nat print
Flags: X – disabled, I – invalid, D – dynamic
[admin@titik.org] > /ip firewall nat add chain=srcnat src-address=192.168.100.0/24 action=src-nat to-addresses=z.y.z.pub
[admin@titik.org] > /ip firewall nat print
Flags: X – disabled, I – invalid, D – dynamic
0   chain=srcnat action=src-nat to-addresses=x.y.z.pub src-address=192.168.100.0/24
Setting PC CLIENT
9. Setting IP Address client
Setting IP Adress Client
Setting IP Adress Client
IP Address : 192.168.100.2
Subnet        : 255.255.255.0
Gateway     : 192.168.100.1
DNS       : 192.168.100.1
10. Test koneksi dengan ping ke Router, Gateway, DNS dan yahoo.com
- Ping Router

Perk1z:~ herman$ ping 192.168.100.1
PING 192.168.100.1 (192.168.100.1): 56 data bytes
64 bytes from 192.168.100.1: icmp_seq=0 ttl=64 time=0.360 ms
64 bytes from 192.168.100.1: icmp_seq=1 ttl=64 time=0.257 ms
64 bytes from 192.168.100.1: icmp_seq=2 ttl=64 time=0.254 ms
^C
— 192.168.100.1 ping statistics —
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.254/0.290/0.360/0.049 ms
- Ping Gateway
perk1z:~ herman$ ping x.y.z.gw
PING x.y.z.gw (x.y.z.gw): 56 data bytes
64 bytes from x.y.z.gw: icmp_seq=0 ttl=63 time=1.813 ms
64 bytes from x.y.z.gw: icmp_seq=1 ttl=63 time=1.538 ms
64 bytes from x.y.z.gw: icmp_seq=2 ttl=63 time=1.368 ms
^C
— x.y.z.gw ping statistics —
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.368/1.573/1.813/0.183 ms
- Ping DNS
perk1z:~ herman$ ping x.y.z.dns1
PING x.y.z.dns1 (x.y.z.dns1): 56 data bytes
64 bytes from x.y.z.dns1: icmp_seq=0 ttl=62 time=1.437 ms
64 bytes from x.y.z.dns1: icmp_seq=1 ttl=62 time=3.945 ms
64 bytes from x.y.z.dns1: icmp_seq=2 ttl=62 time=1.576 ms
^C
— x.y.z.dns1 ping statistics —
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.437/2.319/3.945/1.151 ms
- Ping Yahoo
perk1z:~ herman$ ping yahoo.com
PING yahoo.com (206.190.60.37): 56 data bytes
64 bytes from 206.190.60.37: icmp_seq=0 ttl=47 time=303.308 ms
64 bytes from 206.190.60.37: icmp_seq=1 ttl=47 time=309.105 ms
64 bytes from 206.190.60.37: icmp_seq=2 ttl=47 time=306.238 ms
^C
— yahoo.com ping statistics —
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 303.308/306.217/309.105/2.367 ms
Selamat mencoba dan Semoga bermanfaat
 
Support : Web Master | webbmatrix | Media Islamic
Copyright © 2010. Aplikasi Facebook Twitter Software Ebook Free - All Rights Reserved
Web master Media news Published by Jurnalis Rakyat.com
Proudly powered by Google