PDA

View Full Version : Cant connect to services within LAN (VNC, APACHE, etc...) (Connects fine thru Router)



CellToolz
2015-06-22, 10:50
Hello all and thanks for the help in advance, I never post asking for help I usually can come up with a solution on my own but this has me stumped... Anyways my problem is that i seem to be having trouble connecting to any of my services within my LAN. I have port forwarding pointed to my host thru my router and I can connect just fine outside the LAN. I've tried checking my iptables and disabled the firewall (ufw) but still no luck... I'll try to post as much info as I can about my setup.

Connected to internet thru WLAN0 @ 192.168.10.39 (static IP) 192.168.10.1 (default Gateway) 255.255.255.0 (subnet mask)

root@kali-linux:~# ifconfig


eth0 Link encap:Ethernet HWaddr 00:21:9b:13:07:4c
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:20 Memory:fdfc0000-fdfe0000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:600 (600.0 B) TX bytes:600 (600.0 B)

wlan0 Link encap:Ethernet HWaddr 00:19:5b:43:57:e2
inet addr:192.168.10.39 Bcast:192.168.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11177 errors:0 dropped:0 overruns:0 frame:0
TX packets:8028 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11762191 (11.2 MiB) TX bytes:1358148 (1.2 MiB)



root@kali-linux:~# route -n


Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.10.1 0.0.0.0 UG 0 0 0 wlan0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0


root@kali-linux:~# cat /etc/resolv.conf


# Generated by NetworkManager
nameserver 192.168.10.1
nameserver 75.75.75.75
nameserver 75.75.76.76


(VNC Server)
root@kali-linux:~# netstat -an | grep 5900


tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN
tcp 0 0 192.168.10.39:5900 91.200.12.73:56714 TIME_WAIT
tcp6 0 0 :::5900 :::* LISTEN


(VNC Server Connected from outside LAN)
root@kali-linux:~# netstat -an | grep 5900


tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN
tcp 0 0 192.168.10.39:5900 192.168.10.1:49964 ESTABLISHED
tcp6 0 0 :::5900 :::* LISTEN


(APACHE Web Server)
root@kali-linux:~# netstat -an | grep 80


tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp6 0 0 :::5800 :::* LISTEN


(iptables rules)
root@kali-linux:~# iptables -L


Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain ufw-after-forward (0 references)
target prot opt source destination

Chain ufw-after-input (0 references)
target prot opt source destination

Chain ufw-after-logging-forward (0 references)
target prot opt source destination

Chain ufw-after-logging-input (0 references)
target prot opt source destination

Chain ufw-after-logging-output (0 references)
target prot opt source destination

Chain ufw-after-output (0 references)
target prot opt source destination

Chain ufw-before-forward (0 references)
target prot opt source destination

Chain ufw-before-input (0 references)
target prot opt source destination

Chain ufw-before-logging-forward (0 references)
target prot opt source destination

Chain ufw-before-logging-input (0 references)
target prot opt source destination

Chain ufw-before-logging-output (0 references)
target prot opt source destination

Chain ufw-before-output (0 references)
target prot opt source destination

Chain ufw-reject-forward (0 references)
target prot opt source destination

Chain ufw-reject-input (0 references)
target prot opt source destination

Chain ufw-reject-output (0 references)
target prot opt source destination

Chain ufw-track-input (0 references)
target prot opt source destination

Chain ufw-track-output (0 references)
target prot opt source destination



While running wireshark i don't seem to get any incomming connection request's when i try to establish a connection within the LAN. I'm completely stumped as to why my router has no trouble seeing and connecting to the host but everything else on the LAN doesnt seem to want to connect. The router can ping the computer just fine but i have 100% packet loss if i try to ping it from any other computer on the network. I have Linux, Vista, OSX, & Win7 (quad boot, not VM) all installed on the same machine and the other operating systems work just fine as far as being able to connect from within the LAN.

If anyone can point me in the right direction i'd greatly appreciate it.

-CellToolz