bantu setting ubuntu server 12.04 LTS

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
qbond
Posts: 8
Joined: 31 Mar 2012, 15:29

bantu setting ubuntu server 12.04 LTS

Postby qbond » 26 Feb 2013, 17:49

tolong bantuan paramaster untuk setting router di ubuntu 12.04LTS
kasus ane gini.
ane sudah install ubuntu servernya dan cuma install paket SSH server aj, yg sudah saya set
modem ADSL ip 192.168.1.1
eth0 192.168.0.10
eth1 192.168.1.2

ane sudah set ip manual di ubuntu sbb:
nano /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255

auto eth1 /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

exit 0

kemudian ane restart ubuntu'y, setelah ane coba ping google.com ko gada respon? apa ada paket yg harus di instal lagi atau setingan ane yg salah? mohon bantuanya gan.. coz nubee :grin:
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: bantu setting ubuntu server 12.04 LTS

Postby q_p » 26 Feb 2013, 18:14

Modem ADSL sudah dial belum ?
1. dial dari modem ? atau
2. dial dari sever dalam mode bridge ?
User avatar
rizaaal
Posts: 1212
Joined: 01 May 2011, 16:02
Location: Bekasi, Indonesia
Contact:

Re: bantu setting ubuntu server 12.04 LTS

Postby rizaaal » 26 Feb 2013, 19:14

1. coba ping ke modemnya dulu sudah bisa kah?

# ping 192.168.1.1

2. Coba ping ke ip publik internet juga. Siapa tahu masalahnya cuma di DNSnya aja.

# ping 8.8.8.8
User avatar
mallink
Posts: 86
Joined: 24 Feb 2013, 23:50
Location: makassar
Contact:

Re: bantu setting ubuntu server 12.04 LTS

Postby mallink » 27 Feb 2013, 04:19

root@server:/etc/init.d# squid -f /etc/squid/squid.conf -z
2013/02/27 04:17:02| parseConfigFile: squid.conf:144 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:145 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:146 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:147 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:148 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:149 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:150 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:151 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:154 unrecognized: '(get_video\?|videoplayback\?|videodownload\?|\.flv?)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:155 unrecognized: '(get_video\?|videoplayback\?id|videoplayback.*id|videodownlo ad\?|\.flv?)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:156 unrecognized: '\.(ico|video-stats)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:157 unrecognized: '\.etology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:158 unrecognized: 'galleries\.video(\?|sz)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:159 unrecognized: 'brazzers\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:160 unrecognized: '\.adtology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:161 unrecognized: '^.*(utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\. com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|ad vertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractiv e\.com|syndication\.com|media.fastclick.net).*'
2013/02/27 04:17:02| parseConfigFile: squid.conf:162 unrecognized: '^.*safebrowsing.*google'
2013/02/27 04:17:02| parseConfigFile: squid.conf:163 unrecognized: '^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.uk)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:164 unrecognized: 'ytimg\.com.*\.jpg'
2013/02/27 04:17:02| parseConfigFile: squid.conf:165 unrecognized: 'images\.friendster\.com.*\.(png|gif)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:166 unrecognized: 'garena\.com'
2013/02/27 04:17:02| parseConfigFile: squid.conf:167 unrecognized: 'photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:168 unrecognized: 'vid\.akm\.dailymotion\.com.*\.on2\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:169 unrecognized: 'mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:170 unrecognized: '^http:\/\/images|pics|thumbs[0-9]\.'
2013/02/27 04:17:02| parseConfigFile: squid.conf:171 unrecognized: '^http:\/\/www.onemanga.com.*\/'
2013/02/27 04:17:02| parseConfigFile: squid.conf:172 unrecognized: '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])'
2013/02/27 04:17:02| parseConfigFile: squid.conf:175 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:176 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:177 unrecognized: 'static\.ak\.fbcdn\.net*\.(jpg|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:178 unrecognized: '^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:181 unrecognized: '^http:\/\/apps.facebook.com.*\/'
2013/02/27 04:17:02| parseConfigFile: squid.conf:182 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:183 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:184 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:185 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:186 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:187 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:190 unrecognized: '^http:\/\/\.www[0-9][0-9]\.indowebster\.com\/(.*)(mp3|rar|zi p|flv|wmv|3gp|mp(4|3)|exe|msi|zip)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:193 unrecognized: '\.rapidshare.*\/[0-9]*\/.*\/[^\/]*'
2013/02/27 04:17:02| parseConfigFile: squid.conf:194 unrecognized: '^http://v\.okezone\.com/get_video\/([a-zA-Z0-9])'
2013/02/27 04:17:02| parseConfigFile: squid.conf:195 unrecognized: '(get_video\?|videoplayback\?|videodownload\?|\.flv?)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:196 unrecognized: '\.(ico|video-stats)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:197 unrecognized: '\.etology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:198 unrecognized: 'galleries\.video(\?|sz)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:199 unrecognized: 'brazzers\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:200 unrecognized: '\.adtology\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:202 unrecognized: '^http://((cbk|mt|khm|mlt)[0-9]?)\.google\.co(m|\.id)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:203 unrecognized: 'ytimg\.com.*\.(jpg|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:204 unrecognized: 'images\.friendster\.com.*\.(png|gif)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:205 unrecognized: 'garena\.com'
2013/02/27 04:17:02| parseConfigFile: squid.conf:206 unrecognized: 'photobucket.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:207 unrecognized: 'vid\.akm\.dailymotion\.com.*\.on2\?'
2013/02/27 04:17:02| parseConfigFile: squid.conf:208 unrecognized: '^http:\/\/images|pics|thumbs[0-9]\.'
2013/02/27 04:17:02| parseConfigFile: squid.conf:209 unrecognized: '^http:\/\/www.onemanga.com.*\/'
2013/02/27 04:17:02| parseConfigFile: squid.conf:210 unrecognized: 'mediafire.com\/images.*\.(jp(e?g|e|2)|tiff?|bmp|gif|png)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:211 unrecognized: '\.macromedia.com.*\.(z|exe|cab)'
2013/02/27 04:17:02| parseConfigFile: squid.conf:214 unrecognized: '^.*safebrowsing.*google'
2013/02/27 04:17:02| parseConfigFile: squid.conf:215 unrecognized: '^.*(streamate.doublepimp.com.*\.js\?|utm\.gif|ads\?|rmxads\. com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia \.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doublecl ick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).*'
2013/02/27 04:17:02| parseConfigFile: squid.conf:218 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:219 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:220 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:221 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:222 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:224 unrecognized: '-i'
2013/02/27 04:17:02| parseConfigFile: squid.conf:225 unrecognized: '^gopher:'
2013/02/27 04:17:02| parseConfigFile: squid.conf:226 unrecognized: '^ftp:'
2013/02/27 04:17:02| parseConfigFile: squid.conf:227 unrecognized: '.'
2013/02/27 04:17:02| parseConfigFile: squid.conf:268 unrecognized: 'n_aiops_threads'
2013/02/27 04:17:02| parseConfigFile: squid.conf:269 unrecognized: 'load_check_stopen'
2013/02/27 04:17:02| parseConfigFile: squid.conf:270 unrecognized: 'load_check_stcreate'
2013/02/27 04:17:02| parseConfigFile: squid.conf:271 unrecognized: 'download_fastest_client_speed'
2013/02/27 04:17:02| ACL name 'all' not defined!
FATAL: Bungled (null) line 180: http_reply_access allow all
Squid Cache (Version 2.7.STABLE9): Terminated abnormally.
User avatar
qbond
Posts: 8
Joined: 31 Mar 2012, 15:29

Re: bantu setting ubuntu server 12.04 LTS

Postby qbond » 08 Mar 2013, 14:05

sudah bisa gan.. ane hilangkan baris echo "1" > /proc/sys/net/ipv4/ip_forward pada rc.local akhirnya bisa. tp ane pernah coba install lagi ubuntu'y dgn settingan sama buat ngilangin rasa penasaran aj,, eh ga taunya malah ga bisa. memang harus dengan koneksi internet juga install'y baru bisa stabil.
User avatar
qbond
Posts: 8
Joined: 31 Mar 2012, 15:29

Re: bantu setting ubuntu server 12.04 LTS

Postby qbond » 08 Mar 2013, 14:07

coba masuk sini spa tau bisa membantu
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: bantu setting ubuntu server 12.04 LTS

Postby q_p » 08 Mar 2013, 14:14

qbond wrote:sekarang pada bagian /etc/sysctl.conf (#net.ipv4.ip_forward=1 tanda "#" sudah ane hapus
Jika dengan cara ini (uncommand) anda tdk perlu menambahkan echo "1" > /proc/sys/net/ipv4/ip_forward di rc.local. Dan selesai meng-edit jalankan perintah

Code: Select all

sysctl -p

Sebaliknya, jika menggunakan
qbond wrote:pada bagian /etc/rc.local ane tambah baris
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
exit 0
Anda tdk perlu melakukan perubahan/edit pada file /etc/sysctl.conf.
User avatar
qbond
Posts: 8
Joined: 31 Mar 2012, 15:29

Re: bantu setting ubuntu server 12.04 LTS

Postby qbond » 10 Mar 2013, 23:34

owg gtu.. y.. thnks om.. sory nubee
jadi nambah pengetahuan lg deh mengenain ubuntu server
User avatar
HenzDoank
Posts: 4
Joined: 22 Jul 2011, 23:59
Contact:

Re: bantu setting ubuntu server 12.04 LTS

Postby HenzDoank » 15 Mar 2013, 17:14

ikut nyimak dulu deh gan
User avatar
budi11
Posts: 97
Joined: 01 Dec 2012, 19:56
Location: Magetan
Contact:

Re: bantu setting ubuntu server 12.04 LTS

Postby budi11 » 17 Mar 2013, 14:10

qbond wrote:tolong bantuan paramaster untuk setting router di ubuntu 12.04LTS
kasus ane gini.
ane sudah install ubuntu servernya dan cuma install paket SSH server aj, yg sudah saya set
modem ADSL ip 192.168.1.1
eth0 192.168.0.10
eth1 192.168.1.2

ane sudah set ip manual di ubuntu sbb:
nano /etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255

auto eth1 /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

exit 0

kemudian ane restart ubuntu'y, setelah ane coba ping google.com ko gada respon? apa ada paket yg harus di instal lagi atau setingan ane yg salah? mohon bantuanya gan.. coz nubee :grin:


1. Di cek dulu ping ke gateway 192.168.1.1
2. Di cek default routing nya pakai
netstat -nr
default routing nya harus 192.168.1.1 ditampilan.
3. di ping pakai IP, misalkan ke 8.8.8.8
4. di cek /etc/resolv.conf, dns server nya arahnya ke mana

Kalau 4 syarat tersebut tidak ada kendala harusnya bisa ping ke google.

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 20 guests