Akses menggunakan public IP

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
Post Reply
fadiln2fa
Contact:

Akses menggunakan public IP

Post 21 Sep 2018, 07:42

gan, ane kan coba bikin web server ketika ane akses pakai LAN bisa memuat. pas ane coba pakai public ip kok gak bisa dimuat ya? mohon pencerahannya gan :smile:


User avatar
#RisX
Has thanked: 10 times
Been thanked: 2 times

Post 25 Sep 2018, 09:51

fadiln2fa wrote:
21 Sep 2018, 07:42
gan, ane kan coba bikin web server ketika ane akses pakai LAN bisa memuat. pas ane coba pakai public ip kok gak bisa dimuat ya? mohon pencerahannya gan :smile:
ada screenshotnya gg gan?
atau
confignya kaya gimana ?
1. /etc/network/interfaces
2. /etc/apache2/sites-enabled/000-default.conf

coba copas disini


fadiln2fa
Contact:

Post 25 Sep 2018, 10:17

#RisX wrote:
25 Sep 2018, 09:51
fadiln2fa wrote:
21 Sep 2018, 07:42
gan, ane kan coba bikin web server ketika ane akses pakai LAN bisa memuat. pas ane coba pakai public ip kok gak bisa dimuat ya? mohon pencerahannya gan :smile:
ada screenshotnya gg gan?
atau
confignya kaya gimana ?
1. /etc/network/interfaces
2. /etc/apache2/sites-enabled/000-default.conf

coba copas disini
GNU nano 2.2.6 File: /etc/network/interfaces Modified

# 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

# primary network
auto eth0
iface eth0 inet static
address 192.168.1.80
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameserver 8.8.8.8 8.8.4.4

ini gan


fadiln2fa
Contact:

Post 25 Sep 2018, 10:33

ketika saya ping 192.168.1.80 bisa reply
tapi ketika saya ping menggunakan public ip malah request time out
padahal di router sudah saya port forwarding


User avatar
#RisX
Has thanked: 10 times
Been thanked: 2 times

Post 25 Sep 2018, 10:36

fadiln2fa wrote:
25 Sep 2018, 10:17
#RisX wrote:
25 Sep 2018, 09:51
fadiln2fa wrote:
21 Sep 2018, 07:42
gan, ane kan coba bikin web server ketika ane akses pakai LAN bisa memuat. pas ane coba pakai public ip kok gak bisa dimuat ya? mohon pencerahannya gan :smile:
ada screenshotnya gg gan?
atau
confignya kaya gimana ?
1. /etc/network/interfaces
2. /etc/apache2/sites-enabled/000-default.conf

coba copas disini
GNU nano 2.2.6 File: /etc/network/interfaces Modified

# 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

# primary network
auto eth0
iface eth0 inet static
address 192.168.1.80
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameserver 8.8.8.8 8.8.4.4

ini gan

itu baru lokal , tambahin konfigurasi buat ip publicnya gan,

coba jalanin diterminal, buat detek ethernet interfaces yg lainya selain eth0 :
ifconfig -a

copasin disini

misal yg kedetek eth1

Code: Select all

auto eth1
iface eth1 inet static
        address (ini ganti ip puclic )
        netmask (ini ganti dgn netmask ip puclic )
        network (ini ganti dgn network ip puclic )
        broadcast (ini ganti dgn broadcast ip puclic )
        gateway (ini ganti dgn gateway ip puclic )
        dns-nameserver (ini ganti dgn dns-nameserver ip puclic )
habis itu jalanin :
systemctl restart networking
systemctl status networking

klo belum ada efek, jalanin reboot


User avatar
#RisX
Has thanked: 10 times
Been thanked: 2 times

Post 25 Sep 2018, 10:38

fadiln2fa wrote:
25 Sep 2018, 10:33
ketika saya ping 192.168.1.80 bisa reply
tapi ketika saya ping menggunakan public ip malah request time out
padahal di router sudah saya port forwarding
bisa jadi konfig di routernya gan coba arahin port 80 ip public nya ke ip 192.168.1.80


fadiln2fa
Contact:

Post 25 Sep 2018, 10:43

#RisX wrote:
25 Sep 2018, 10:36
fadiln2fa wrote:
25 Sep 2018, 10:17
#RisX wrote:
25 Sep 2018, 09:51


ada screenshotnya gg gan?
atau
confignya kaya gimana ?
1. /etc/network/interfaces
2. /etc/apache2/sites-enabled/000-default.conf

coba copas disini
GNU nano 2.2.6 File: /etc/network/interfaces Modified

# 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

# primary network
auto eth0
iface eth0 inet static
address 192.168.1.80
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameserver 8.8.8.8 8.8.4.4

ini gan

itu baru lokal , tambahin konfigurasi buat ip publicnya gan,

coba jalanin diterminal, buat detek ethernet interfaces yg lainya selain eth0 :
ifconfig -a

copasin disini

misal yg kedetek eth1

Code: Select all

auto eth1
iface eth1 inet static
        address (ini ganti ip puclic )
        netmask (ini ganti dgn netmask ip puclic )
        network (ini ganti dgn network ip puclic )
        broadcast (ini ganti dgn broadcast ip puclic )
        gateway (ini ganti dgn gateway ip puclic )
        dns-nameserver (ini ganti dgn dns-nameserver ip puclic )
habis itu jalanin :
systemctl restart networking
systemctl status networking

klo belum ada efek, jalanin reboot
network interfaces saya cuma ada dua mas lo sama eth0

berarti di eth0 ip public nya harus diganti kalo router mati ya?


fadiln2fa
Contact:

Post 25 Sep 2018, 10:45

Code: Select all

noor@noor:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:90:f5:8e:6f:af
          inet addr:192.168.1.80  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::290:f5ff:fe8e:6faf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:46739 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21240 errors:4 dropped:0 overruns:4 carrier:0
          collisions:3 txqueuelen:1000
          RX bytes:10692189 (10.6 MB)  TX bytes:2925282 (2.9 MB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:176 (176.0 B)  TX bytes:176 (176.0 B)


User avatar
#RisX
Has thanked: 10 times
Been thanked: 2 times

Post 25 Sep 2018, 15:05

fadiln2fa wrote:
25 Sep 2018, 10:45

Code: Select all

noor@noor:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:90:f5:8e:6f:af
          inet addr:192.168.1.80  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::290:f5ff:fe8e:6faf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:46739 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21240 errors:4 dropped:0 overruns:4 carrier:0
          collisions:3 txqueuelen:1000
          RX bytes:10692189 (10.6 MB)  TX bytes:2925282 (2.9 MB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:176 (176.0 B)  TX bytes:176 (176.0 B)
pake PC yah, ethernetnya cuma 1 (eth0) ?
berarti ini konfigurasi di routernya, mungkin bisa di coba di routernya forwarding untuk port 80 ke ip 192.168.1.80 ( ip loka pc agan )


fadiln2fa
Contact:

Post 26 Sep 2018, 08:06

iya mas saya pake laptop


User avatar
#RisX
Has thanked: 10 times
Been thanked: 2 times

Post 26 Sep 2018, 09:46

fadiln2fa wrote:
26 Sep 2018, 08:06
iya mas saya pake laptop
coba di routernya forwarding untuk port 80 ke ip 192.168.1.80 ( ip loka pc agan )


fadiln2fa
Contact:

Post 03 Oct 2018, 07:28

#RisX wrote:
26 Sep 2018, 09:46
fadiln2fa wrote:
26 Sep 2018, 08:06
iya mas saya pake laptop
coba di routernya forwarding untuk port 80 ke ip 192.168.1.80 ( ip loka pc agan )
saya sudah melakukan port forwarding di router dan hasilnya juga nihil gan untuk gambarnya https://ibb.co/cHifzK


User avatar
Bravo

Post 07 Oct 2018, 10:40

apa type routernya?


fadiln2fa
Contact:

Post 09 Oct 2018, 14:18

Bravo wrote:
07 Oct 2018, 10:40
apa type routernya?
alcatel lucent i-240w-a


Post Reply

Who is online

Users browsing this forum: No registered users and 43 guests