Tampilkan postingan dengan label linux router. Tampilkan semua postingan
Tampilkan postingan dengan label linux router. Tampilkan semua postingan
Kamis, 23 Mei 2013

exim : relay not permitted


problem di exim sebagai SMTP relay :'relay not permitted'

the log message problem:

2013-05-24 10:27:51 H=([192.168.1.149]) [202.11.11.111] F=<edy@xxx.net.id> rejected RCPT <noc@xxx.net.id>: relay not permitted
2013-05-24 10:28:24 no IP address found for host host-202-11-11-111.jgg,com (during SMTP connection from [202.11.11.111])
2013-05-24 10:28:24 H=([192.168.1.149]) [202.11.11.111] F=<edy@xxx.net.id> rejected RCPT <noc@xxx.net.id>: relay not permitted
2013-05-24 10:28:33 no IP address found for host host-202-11-11-111.jgg,com (during SMTP connection from [202.11.11.111])
2013-05-24 10:28:33 H=([192.168.1.149]) [202.11.11.111] F=<edy@xxx.net.id> rejected RCPT <noc@xxx.net.id>: relay not permitted
2013-05-24 10:28:37 no IP address found for host host-202-11-11-111.jgg,com (during SMTP connection from [202.11.11.111])
2013-05-24 10:28:37 H=([192.168.1.149]) [202.11.11.111] F=<edy@xxx.net.id> rejected RCPT <noc@xxx.net.id>: relay not permitted
2013-05-24 10:28:41 no IP address found for host host-202-11-11-111.jgg,com (during SMTP connection from [202.11.11.111])
2013-05-24 10:28:41 H=([192.168.1.149]) [202.11.11.111] F=<edy@xxx.net.id> rejected RCPT <noc@xxx.net.id>: relay not permitted
2013-05-24 10:28:46 no IP address found for host host-202-11-11-111.jgg,com (during SMTP connection from [202.11.11.111])
2013-05-24 10:28:46 H=([192.168.1.149]) [202.11.11.111] F=<edy@xxx.net.id> rejected RCPT <noc@xxx.net.id>: relay not permitted
2013-05-24 10:28:56 no IP address found for host host-202-11-11-111.jgg,com (during SMTP connection from [202.11.11.111])
2013-05-24 10:28:56 H=([192.168.1.149]) [202.11.11.111] F=<edy@xxx.net.id> rejected RCPT <noc@xxx.net.id>: relay not permitted
2013-05-24 10:28:59 no IP address found for host host-202-11-11-111.jgg,com (during SMTP connection from [202.11.11.111])
2013-05-24 10:28:59 H=([192.168.1.149]) [202.11.11.111] F=<edy@xxx.net.id> rejected RCPT <noc@xxx.net.id>: relay not permitted


solve the problem with:


domainlist local_domains = @
domainlist relay_to_domains =
hostlist   relay_from_hosts = localhost : 127.0.0.1 :  202.11.11.0/20 <----[your ip must allowed]


the log solve:

2013-05-24 10:35:33 1Ufimz-0001ch-Hv <= edy@xxx.net.id H=([192.168.1.149]) [202.11.11.111] P=esmtp S=565 id=519EE005.8080604@xxx.net.id
2013-05-24 10:35:36 1Ufimz-0001ch-Hv => noc@xxx.net.id R=dnslookup T=remote_smtp H=bakpia.xxx.net.id [202.169.224.5] X=TLSv1:AES256-SHA:256
2013-05-24 10:35:36 1Ufimz-0001ch-Hv Completed
Jumat, 10 Mei 2013

install tftp, dhcp on fedora feat docsis cm


install paket via yum :  dhcpd xinetd
create dir /tftpboot


konfigurasi tftp server :

[root@batam-center ~]# cat /etc/xinetd.d//tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
#       protocol.  The tftp protocol is often used to boot diskless \
#       workstations, download configuration files to network-aware printers, \
#       and to start the installation process for some operating systems.
service tftp
{
        disable = no
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             =  -s /tftpboot
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}


 konfigurasi dhcp server

[root@batam-center ~]# cat /etc/dhcpd.conf
#
# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp*/dhcpd.conf.sample
#   see dhcpd.conf(5) man page
#

authoritative;
ddns-update-style none;
option time-servers 202.169.22.16;
log-facility local7;
default-lease-time 604800;
max-lease-time 777600;
option domain-name-servers 192.168.1.107;
option domain-name "batammedianet.com";
Shared-network hfc_batam {

subnet 192.168.1.0 netmask 255.255.255.0 {
        }

subnet 192.168.200.0 netmask 255.255.255.252 {
        }

subnet 172.16.0.0 netmask 255.255.0.0 {
        option routers 172.16.0.1;
        next-server 172.16.0.1;
        }
}

group {filename "config64.bin"; host cm-172.16.0.77 {hardware ethernet 00:1a:66:72:73:88; fixed-address 172.16.0.77;}}
group {filename "docsis1.1_simple.bin"; host cm-172.16.0.200 {hardware ethernet 00:1e:46:bf:35:20; fixed-address 172.16.0.200;}}
Selasa, 07 Mei 2013

install docsis on fedora


paket yg di butuhkan : bison,flex*,net-snmp*
download file
wget http://downloads.sourceforge.net/project/docsis/docsis/docsis-0.9.6/docsis-0.9.6.tar.bz2


extract file dan install spt biasa



ps: docsis adalah software untuk kompilasi, di pakai untuk jaringan berbasis HFC network. atau teknologi broadband yang di combine dengan cable tv.

disable NetworkManager on fedora


error on fedora :

service network restart
Restarting network (via systemctl):  Job failed. See system logs and 'systemctl status' for details.
                                                           [FAILED]


fix with :

[root@batam-center ~]# service NetworkManager stop
Redirecting to /bin/systemctl  stop NetworkManager.service
[root@batam-center ~]# chkconfig NetworkManager off
Note: Forwarding request to 'systemctl disable NetworkManager.service'.
rm '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service'
rm '/etc/systemd/system/multi-user.target.wants/NetworkManager.service'
[root@batam-center ~]# /etc/init.d/network restart
Restarting network (via systemctl):                        [  OK  ]
[root@batam-center ~]# /etc/init.d/network restart
Restarting network (via systemctl):                        [  OK  ]
[root@batam-center ~]# ip addr



ps : kurang familiar dng fedora so terasa agak aneh.
Senin, 31 Desember 2012

icip-icip Cisco router dengan quagga


Sedikit share kopi panas dan cemilan kacang, bagi anda yang ingin menjadi network engineer ataupun ingin belajar internet routing, tentunya ingin sekali belajar tentang static routing, dinamic routing dan berbagai  routing protocol di internet (mis : RIP, OSPF, BGP). Untuk saat ini backbone internet terhubung dengan routing protocol BGP (setiap ISP mempunyai AS id yang tekoneksi antar ISP/uplink provider), untuk jaringan skala kecil dan menengah bisa kita pakai RIPv2 dan OSPF. Untuk mempelajari routing ini kita tidak perlu membeli Cisco yang notabene sangat mahal, cukup disiasati dengan software open source quagga. quagga support untuk semua varian linux, dan  sintak /perintah Quagga, mirip dengan perintah yang ada di CISCO router.

Untuk Arsitektur Quagga sendiri dibagi menjadi 2 yaitu :
  •  Zebra – merupakan bagian penghubung antara linux kernel dengan aplikasi routing protokol
  •  Routing Daemon – merupakan aplikasi pengatur routing protokol. Misal: ospfd, adalah aplikasi yang mengatur routing protokol OSPF, RIPD adalah aplikasi yang mengatur routing protokol RIP, begitu juga dengan BGP.
Langkah-­langkah untuk menggunakan routing protokol :
  1. Memilih daemon routing protokol yang akan digunakan
  2. Membuat konfigurasi dasar
  3. Mengaktifkan daemon
  4. Login ke aplikasi routing protokol
  5. Melakukan distribusi jaringan pada PC router
Untuk instalasi quagga di linux debian:
apt-get install quagga quagga-doc

Setelah instalasi selesai kita akan merubah file daemons didalam direktori /etc/quagga/daemons, yaitu dengan merubah sesuai dengan protokol yang nantinya kita gunakan. dengan cara merubah “no” menjadi “yes” contoh: 
zebra=yes
bgpd=no
ospfd=no
ospf6d=no
ripd=yes
ripngd=no
isisd=no
Seperti di atas kita mengaktifkan protokol zebra (wajib) dan protokol ripd dan contoh tersebut bisa juga dilakukan untuk protokol routing lainnya, protokol tidak lain merupakan set rule yang memberitahu cara divice-device dalam jaringan bertukar informasi table routing, protokal routing ini adalah protokol-protokol yang digunakan untuk merawat tabel routing pada router-router.
kemudian copy file berikut ini
cp /usr/share/doc/quagga/examples/zebra.conf.sample /etc/quagga/zebra.conf
cp /usr/share/doc/quagga/examples/ripd.conf.sample /etc/quagga/ripd.conf
Begitu juga dengan daemon yang lain jika kita ingin menggunakannya.
Setelah membuat konfigurasi zebra.conf dan routing protokol (misal ripd.conf), daemon routing protokol perlu diaktifkan dengan cara :
/etc/init.d/quagga start
Port listen untuk zebra menggunakan port 2601 dan untuk ospfd 2604, bgpd 2605,dan ripd 2602, artinya kita dapat masuk keaplikasi tersebut melalui port­-port tersebut.
root@SM:~# telnet 127.0.0.1 2601
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

Hello, this is Quagga (version 0.99.9).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

User Access Verification

Password:
remote ripd :
root@SM:~# telnet localhost 2602
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

Hello, this is Quagga (version 0.99.9).
Copyright 1996-2005 Kunihiro Ishiguro, et al.


User Access Verification

Password:
ripd> en
ripd> enable
ripd# sh run
ripd# sh running-config

Current configuration:
!
hostname ripd
password zebra
log stdout
!
router rip
!
line vty
!
end
Simulasi kasus ------menyusul di lain tread------------------
@office : internet service & cable tv provider.