Networking problems

Status
Not open for further replies.

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94
How can i Plegde for help. My Jails won't connect trough my gateway. I can ping my local IP's but not WAN ip. eg. www.google.com / 193.90.147.95 from within my jails
everything works great on FreeNAS i can ping out and i can ping in.
on LAN i can ping the Jail and the jail can ping the gateway. but not out of the gateway.

I run my self stuck and is in need of help. What more info do you need. Removing the Jail and installing it is not an options cause i have an SQL server there that is running.

This is in the JAIIL
root@Jail:/ # ping www.google.com
ping: cannot resolve www.google.com: Host name lookup failure
root@Jail:/ # netstat -nr
Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
10.0.2.0/24 link#2 U 0 10 epair0
10.0.2.11 link#2 UHS 0 0 lo0
127.0.0.1 link#1 UH 0 0 lo0

Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 link#1 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fe80::/10 ::1 UGRS lo0
fe80::%lo0/64 link#1 U lo0
fe80::1%lo0 link#1 UHS lo0
ff01::%lo0/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%lo0/32 ::1 U lo0
root@Jail:/ #
root@Jail:/ # sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root cron 18678 4 dgram -> /var/run/logpriv
mysql mysqld 18659 10 tcp4 *:3306 *:*
mysql mysqld 18659 12 stream /tmp/mysql.sock
root syslogd 18514 4 dgram /var/run/log
root syslogd 18514 5 dgram /var/run/logpriv
root syslogd 18514 6 udp6 *:514 *:*
root syslogd 18514 7 udp4 *:514 *:*
root@Jail:/ # ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:76:4c:00:0b:0b
inet 10.0.2.11 netmask 0xffffff00 broadcast 10.0.2.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active


This is on the FreeNAS

[root@DAVID] /mnt/MEDIA3/users/Lars# ping www.google.com
PING www.google.com (173.194.32.18): 56 data bytes
64 bytes from 173.194.32.18: icmp_seq=0 ttl=56 time=11.807 ms
64 bytes from 173.194.32.18: icmp_seq=1 ttl=56 time=12.040 ms
64 bytes from 173.194.32.18: icmp_seq=2 ttl=56 time=11.803 ms
64 bytes from 173.194.32.18: icmp_seq=3 ttl=56 time=11.690 ms
64 bytes from 173.194.32.18: icmp_seq=4 ttl=56 time=12.135 ms
64 bytes from 173.194.32.18: icmp_seq=5 ttl=56 time=11.927 ms
^C
--- www.google.com ping statistics ---
6 packets transmitted, 6 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 11.690/11.900/12.135/0.151 m

[root@DAVID] /mnt/MEDIA3/users/Lars# netstat -nr
Routing tables

Internet:
Destination Gateway Flags Refs Use Netif Expire
default 10.0.2.1 UGS 0 911 em0
10.0.0.0/8 link#9 U 0 175 bridge
10.0.2.0/24 link#1 U 0 11846 em0
10.0.2.10 link#1 UHS 0 106 lo0
10.0.2.254 link#9 UHS 0 0 lo0
127.0.0.1 link#8 UH 0 14342 lo0

Internet6:
Destination Gateway Flags Netif Expire
::/96 ::1 UGRS lo0
::1 link#8 UH lo0
::ffff:0.0.0.0/96 ::1 UGRS lo0
fe80::/10 ::1 UGRS lo0
fe80::%em0/64 link#1 U em0
fe80::6a05:caff:fe16:17b6%em0 link#1 UHS lo0
fe80::%lo0/64 link#8 U lo0
fe80::1%lo0 link#8 UHS lo0
ff01::%em0/32 fe80::6a05:caff:fe16:17b6%em0 U em0
ff01::%lo0/32 ::1 U lo0
ff02::/16 ::1 UGRS lo0
ff02::%em0/32 fe80::6a05:caff:fe16:17b6%em0 U em0
ff02::%lo0/32 ::1
[root@DAVID] /mnt/MEDIA3/users/Lars# ifconfig -a
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=42098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO>
ether 68:05:ca:16:17:b6
inet 10.0.2.10 netmask 0xffffff00 broadcast 10.0.2.255
inet6 fe80::6a05:caff:fe16:17b6%em0 prefixlen 64 scopeid 0x1
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
nd6 options=9<PERFORMNUD,IFDISABLED>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 02:28:38:07:9e:00
inet 10.0.2.254 netmask 0xff000000 broadcast 10.255.255.255
nd6 options=1<PERFORMNUD>
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 10 priority 128 path cost 2000
member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
epair0a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:36:5d:00:0a:0a
nd6 options=1<PERFORMNUD>
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
[root@DAVID] /mnt/MEDIA3/users/Lars#
[root@DAVID] /mnt/MEDIA3/users/Lars# sockstat
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
root cron 18678 4 dgram -> /var/run/logpriv
88 mysqld 18659 12 stream /tmp/mysql.sock
root syslogd 18514 4 dgram /var/run/log
root syslogd 18514 5 dgram /var/run/logpriv
root python2.7 18159 4 stream -> /var/run/mdnsd
root python2.7 18159 5 stream -> /var/run/mdnsd
root python2.7 18159 7 stream -> /var/run/mdnsd
www nginx 17665 7 tcp4 *:80 *:*
www nginx 17665 8 tcp6 *:80 *:*
www nginx 17665 11 stream -> ??
root sudo 13447 3 dgram (not connected)
Lars sshd 11626 4 stream -> ??
Lars sshd 11626 5 tcp4 10.0.2.10:22 10.0.2.1:27333
root sshd 11624 5 tcp4 10.0.2.10:22 10.0.2.1:27333
root sshd 11624 6 stream -> ??
root winbindd 11360 16 dgram -> /var/run/logpriv
root winbindd 11360 19 stream /var/run/samba4/winbindd/pipe
root winbindd 11360 20 stream /var/db/samba4/winbindd_privileged/pipe
root winbindd 11360 25 stream -> ??
root winbindd 11359 16 dgram -> /var/run/logpriv
root winbindd 11359 19 stream /var/run/samba4/winbindd/pipe
root winbindd 11359 20 stream /var/db/samba4/winbindd_privileged/pipe
root winbindd 11359 25 stream -> ??
Lars smbd 11358 11 dgram -> /var/run/logpriv
Lars smbd 11358 32 stream -> /var/db/samba4/winbindd_privileged/pipe
Lars smbd 11358 35 tcp4 10.0.2.10:445 10.0.2.102:55943
Lars smbd 11358 44 stream -> ??
Lars smbd 11358 45 stream -> ??
root winbindd 8719 16 dgram -> /var/run/logpriv
root winbindd 8719 19 stream /var/run/samba4/winbindd/pipe
root winbindd 8719 20 stream /var/db/samba4/winbindd_privileged/pipe
root winbindd 8719 21 stream -> ??
root winbindd 8717 16 dgram -> /var/run/logpriv
root winbindd 8717 19 stream /var/run/samba4/winbindd/pipe
root winbindd 8717 20 stream /var/db/samba4/winbindd_privileged/pipe
root winbindd 8717 22 stream -> ??
root winbindd 8717 23 stream /var/db/samba4/winbindd_privileged/pipe
root winbindd 8717 26 stream -> ??
root winbindd 8717 27 stream -> ??
root smbd 8713 30 tcp6 *:445 *:*
root smbd 8713 31 tcp6 *:139 *:*
root smbd 8713 32 tcp4 *:445 *:*
root smbd 8713 33 tcp4 *:139 *:*
root smbd 8713 34 stream -> /var/run/mdnsd
root nmbd 8709 14 udp4 *:137 *:*
root nmbd 8709 15 udp4 *:138 *:*
root nmbd 8709 16 udp4 10.0.2.10:137 *:*
root nmbd 8709 17 udp4 10.0.2.255:137 *:*
root nmbd 8709 18 udp4 10.0.2.10:138 *:*
root nmbd 8709 19 udp4 10.0.2.255:138 *:*
root nmbd 8709 20 stream /var/run/samba4/nmbd/unexpected
root nmbd 8709 21 udp4 10.0.2.254:137 *:*
root nmbd 8709 22 udp4 10.255.255.255:137 *:*
root nmbd 8709 23 udp4 10.0.2.254:138 *:*
root nmbd 8709 24 udp4 10.255.255.255:138 *:*
root sudo 8231 3 dgram (not connected)
Lars sshd 8228 4 stream -> ??
Lars sshd 8228 5 tcp4 10.0.2.10:22 10.0.2.1:21030
root sshd 8226 5 tcp4 10.0.2.10:22 10.0.2.1:21030
root sshd 8226 6 stream -> ??
Lars smbd 7605 28 stream (not connected)
Lars smbd 7605 32 dgram -> /var/run/logpriv
Lars smbd 7605 33 tcp4 10.0.2.10:445 10.0.2.102:55691
Lars smbd 7605 42 stream -> ??
Lars smbd 7605 43 stream -> ??
root sshd 6472 4 tcp6 *:22 *:*
root sshd 6472 5 tcp4 *:22 *:*
messagebus dbus-daemo3261 3 stream /var/run/dbus/system_bus_socket
messagebus dbus-daemo3261 6 stream -> ??
messagebus dbus-daemo3261 7 stream -> ??
nobody mdnsd 3237 3 dgram -> /var/run/logpriv
nobody mdnsd 3237 4 udp4 *:24602 *:*
nobody mdnsd 3237 5 udp6 *:32386 *:*
nobody mdnsd 3237 6 udp4 *:5353 *:*
nobody mdnsd 3237 7 udp4 *:5353 *:*
nobody mdnsd 3237 9 stream /var/run/mdnsd
nobody mdnsd 3237 10 udp6 *:5353 *:*
nobody mdnsd 3237 11 stream /var/run/mdnsd
nobody mdnsd 3237 12 stream /var/run/mdnsd
nobody mdnsd 3237 13 stream /var/run/mdnsd
nobody mdnsd 3237 14 stream /var/run/mdnsd
root nginx 3230 7 tcp4 *:80 *:*
root nginx 3230 8 tcp6 *:80 *:*
root nginx 3230 10 stream -> ??
root nginx 3230 11 stream -> ??
root python2.7 2934 3 tcp4 127.0.0.1:9042 *:*
nobody proftpd 2728 0 tcp4 6 *:21 *:*
nobody proftpd 2728 3 stream /var/run/proftpd.sock
nobody proftpd 2728 4 stream /var/run/proftpd.sock
nobody proftpd 2728 5 dgram -> /var/run/log
root ntpd 2523 3 dgram -> /var/run/logpriv
root ntpd 2523 20 udp4 *:123 *:*
root ntpd 2523 21 udp6 *:123 *:*
root ntpd 2523 22 udp4 10.0.2.10:123 *:*
root ntpd 2523 23 udp6 fe80:1::6a05:caff:fe16:17b6:123 *:*
root ntpd 2523 24 udp6 ::1:123 *:*
root ntpd 2523 25 udp6 fe80:8::1:123 *:*
root ntpd 2523 26 udp4 127.0.0.1:123 *:*
root ntpd 2523 28 udp4 10.0.2.254:123 *:*
root syslogd 2189 4 dgram /var/run/log
root syslogd 2189 5 dgram /var/run/logpriv
root syslogd 2189 6 udp6 *:514 *:*
root syslogd 2189 7 udp4 *:514 *:*
root rtsold 1942 6 dgram -> /var/run/logpriv
root devd 1869 4 stream /var/run/devd.pipe
 

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94
No one who know how to solve this?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
I think its more appropriate to say that its a situation that is sufficiently complex that nobody really wants to touch it. Forums(and IRC) aren't a place for *all* types of questions.

If I went to a car forum and asked "so.. how do I replace my car's engine" nobody would probably want to write a book for me, nor examine every possible permutation for every possible problem.

So I'm sorry, but *I* won't be trying to help you with your issue.
 
D

dlavigne

Guest
Can you ping 8.8.8.8 from within the jail?

What are the contents of /etc/resolv.conf within the jail?
 

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94
i can ping 8.8.8.8 from jail. but if i ping www.vg.com or 173.194.32.18 it wont go trough

content of /etc/resolv.conf in Jail
search local
nameserver 10.0.2.1
nameserver 130.67.15.198
nameserver 217.13.7.140

found out that that is wrong DNS servers for my new ISP that i changed last week :S
 
D

dlavigne

Guest
Yeah, if you can ping external IPs but not addresses, it's definitely name resolution.
 
Status
Not open for further replies.
Top