Networking :: Script - To Mount Smb - Doesn't Run From Rc.local And Only Works On Some Machines

Nov 29, 2008

I have a script which runs a few other scripts (in subfolders of the first script) in order to mount some unix/linux shares) Anyway, when I run the file from rc.local and try to pipe the output into a file the file is empty and the shares are not mounted. however when I run the file it mounts everything.... Also, the script doesn't work on my wireless clients...

View 1 Replies


ADVERTISEMENT

Networking :: Networking Script Doesn't Allow Local Machines To Connect To Each Other?

Jan 21, 2009

I wanted to be able to have separate NICs with separate IPs connecting to separate gateways on a machine so I could put an ftpd on each one. I tried binding an ftpd to each, and running separate instances of the ftpd. I tried virtual hosts.

NOTHING worked. I could either use one ftpd or the other. I could either connect via ssh on one IP or the other. the second I turned one NIC off stuff would work again. I messed with basic iproute commands, andnothng worked until I got this script to run, which allowed me to use each NIC independant of the other.

Code:
#!/bin/sh
#ip route flush all
ip route del default dev eth1
ip route del default dev eth0
ip route del table 1
ip route add table 1 to default via 10.10.10.1 dev eth1
code....

But now, samba client doesn't work. cifs mounting doesn't work either. It can't connect.

BEFORE I ran that script, I could connect via ssh, or to the ftpd running on the machine using a LOCAL IP - 10.10.10.2. AFTER, I have to use the external IP, or I cannot connect. I know that has something to do with it, but I do not have the advanced linux routing knowledge to redo the script or come up with a solution.

View 5 Replies View Related

Ubuntu Servers :: Local IP Works External IP Doesn't

Feb 9, 2010

I am having an issue with my server I have setup. I have apache running and can access the files via all other computers on my network via the ip address i have it set to default to the /var/www folder with index.html as the main file. I am however having issues trying to access it from my other IP the one i found at what is my ip. I have even setup a no-ip address to it. I've forwarded port 20 and port 80 i've even given it the default dmz. I disabled the firewall on my router and I checked and my Ubuntu machine doesn't have a firewall whatsoever i can access my outside ip on the local machine and have access the problem i'm having is trying to access it from anywhere but home. [URL]

View 9 Replies View Related

Ubuntu Networking :: Can't Ping Machines On Local Network

Jun 23, 2010

So in an effort to increase the speed of my netbook, I removed Ubuntu and installed Lubuntu on it. When I tried to mount my samba share as I normally do, I noticed it wasn't able to connect - mount error(113): No route to host. Sensing something fishy, I attempted to ping the machine (both by name and by IP) - Destination Host Unreachable.The machine I'm trying to connect to is using Ubuntu 10.04 x64. I attempted to ping the other way and it was able to connect to the netbook just fine. When the netbook was using Ubuntu, it was connecting fine. My iptables check out ok, but here is the output of iptables -nvL:

Code:

Chain INPUT (policy ACCEPT 213 packets, 21635 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)

[code]....

Does lubuntu have some funky firewall built in to it that I can't find? (I've Googled for information on a Lubuntu default firewall and can't find any)

View 1 Replies View Related

Ubuntu Networking :: Homepage Routed To D-Link Router Login Page On Local Machines?

May 20, 2011

In addition to 2 "desktop" machines, I recently set up an Ubuntu Server with Apache2, but when I try to access my www.homepage from a machine locally connected to the same router (via both wired & wireless interfaces), I am directed to the Login page of the router, not to the www.homepage. Yet, when I access the www.homepage from elsewhere, my www.homepage is accessible.

I can browse to my www.homepage by entering the local IP address into browsers on both local machines, so I know the machines are talking to each other. Just not letting me get in via normal internet browsing channels.

Server: Ubuntu 11.04
Webserver: Apache2
Router: D-Link DIR-615
IP Address of: 192.168.0.110 (reserved on router, static on server)

[Code]....

View 7 Replies View Related

Ubuntu Servers :: Mount Works But Fstab Entry For Same Server Doesn't?

Jul 28, 2011

Code:
192.168.0.133:/openils /openils nfs4 rw,_netdev,auto 0 0
fails to mount the nfs4 share, however

[code]...

View 6 Replies View Related

Fedora Networking :: Cannot Mount One Of My Windows Machines

Apr 10, 2010

What could block access from Fedora to just one Windows XP system without blocking access to or from other Windows systems on the network? I have a working Windows network with six computers and one network-attached-storage. Two of the computers (MARTIN and NANCY) are Windows XP, the rest are older. I set up a Fedora laptop with Samba. The Fedora system can access the Internet (I'm using it to post this message). It can see all the Windows systems, and it can open all of them except MARTIN. The firewall on MARTIN is turned off.

I go to Places, Network, and I see nine icons: the Fedora system, seven Windows systems and one for Windows Network. If I double-click on the MARTIN icon I get a message window that says "Unable to mount location" and "Failed to retrieve share list from server". If I double-click on any of the other Windows icons, including NANCY, a new window opens showing the shares on that system. Similar results with smbclient. It shows the shares for all systems except MARTIN. For MARTIN it says "Connection to MARTIN failed (Error NT_STATUS_UNSUCCESSFUL)."

The other Windows computers on the network can open the shares on MARTIN with no problem. The network is partly wired and partly wireless. The wireless network is secured with WEP. The Fedora laptop is (as you might expect) wireless. The Fedora laptop is an emachines E520 and both Windows XP machines are custom-built tower systems. I don't think that information is relevant but I mention it anyway. What should I look for?

View 5 Replies View Related

Fedora Networking :: Networking On F11 Doesn't Work On Various Machines

Aug 25, 2009

Networking on Fedora 11 doesn't work for me on various machines. Fedora 10 does, but only if you don't do an update.Why does Fedora get worse the more you keep it up-to-date?

View 1 Replies View Related

Fedora Networking :: Telnet Works External In DMZ Not With Local IP

Jun 8, 2011

I'm running Telnet Server, VFTP, and VNC on a Fedora 14 box. The box's internal IP is 192.168.1.222 This machine is configured to live in the DMZ, The firewall is up on both the router and this box. I can remote in from home using our external IP. I can FTP. I can Telnet. All using our external IP. When i'm in the office, i can remote in using our external IP. I can FTP. I can Telnet. Again, all with the external IP. If i attempt to telnet 192.168.1.222 i get a connection refused. i can ping the 192.168 address

nmap tells me that all 1000 ports on 192.168.1.222 are closed
nmap tells me that my expected ports are open on the external IP.

.... This is a relatively new conundrum as it "used to work", and only appears not to since our last reboot (power outage). I know i have to be missing something simple here, but i differ to the experts.

View 5 Replies View Related

Server :: Password-less SSH Only Works On 1 Of 2 Machines?

Apr 16, 2010

I have setup password-less SSH on 2 machines the same way, but it only works on one.

3 machines
2 remotes :-
A : 192.168.109.15

[code]....

View 7 Replies View Related

Ubuntu :: KVM Switch Only Works With Both Machines Turned On?

Jul 12, 2011

hooked my computer up to a kvm switch so thatI could use my pc and my xbox 360 on my computer monitor.AT first everything seemed to be working fine. But when I turn off the xbox I can't use my pc. I can switch back and forth with no problems, but only when both machines are powered on. I'm using 10.04 Lucid and a Trendnet TK-207k KVM switch

View 5 Replies View Related

Networking :: NFS Client - Mount Only Works With Proto=tcp While Iptables Is Running

May 17, 2011

Client is running Oracle VM Server 2.2.1 (kernel 2.6.18-128.2.1.4.37.el5xen). Storage is a NetApp 3210 (NFS configured to use TCP).

Iptables on client has udp and tcp ports 111, 2049 and the NFS server ports opened. Info retrieved using: rpcinfo -p NetApp

When trying a manual mount ...

But when using the proto=tcp option, it works ...

Stopping iptables also works (I can manually mount the share without using proto=tcp).

Is the mounting process somehow trying to negotiate first using udp which the Netapp doesn't respond and hence it fails by timing out?

Can I configure iptables such that I don't have to use the proto=tcp option? Or is there another configuration file I can tweak so that I don't have to use the proto=tcp option?

View 8 Replies View Related

Ubuntu Networking :: Wireless Works - Wired Doesn't ?

Jan 31, 2010

I recently got a cable modem from Comcast, and connected a Belkin F5D7230-4 wireless router to it, then connected my computer and an Xbox 360 to the router with ethernet cables.

My computer dual-boots Ubuntu 9.10 and Windows 7. In either operating system, the wireless connection is flawless. In Windows, so is the wired connection. But in Ubuntu, there's a lot of trouble with the wired connection -- specifically, while I can connect to the router and to the Internet, and while I can use ping, dig, traceroute, etc., to verify connections to remote hosts, Web browsing, or anything else that uses http, works only for a few Websites, and then only erratically.

I don't believe it is a DNS problem -- testing with ping, dig, etc., demonstrates that, and I have also tried using alternate nameservers. I also don't believe that it is an issue with IPv6, as I've tried the fixes usually suggested, including editing the grub configuration to disable IPv6 support in the kernel and verifying that IPv6 was inactive. I've also tried using local dns servers such as pdns-recursor. None of these things seemed to help.

Also, perhaps unrelated, but disturbing: my computer has locked up a few times while testing the wired connection, and I had to use a hard reset to restart the computer.

View 1 Replies View Related

Software :: Local Machines Showing Up With External Addresses?

Nov 9, 2009

I'm running a "relatively standard" home network environment. That is, I've got a DSL connection to my ISP, and am running a router/NAT environment that connects a number of machines -- Mac, Windows, and Linux -- to the external network. Internally, all the machines have addresses in the range of 192.168.0.x. However, because of the static/NAT address mapping, the machines whose internal addresses are mapped to external static addresses show up at external hosts as 216.xxx.yyy.zzz (the address range assigned to me by my ISP).

The other machines, which are on the network via NAT, show up as 66.xxx.yyy.zzz, the address assigned by my ISP. Finally, I'm running a local DNS server that handles addressing issues for my domains and sub-domains that are hosted on local machines. All the machines use this local server for their DNS, with my ISP's DNS server as secondary. All of this is to say that it's more or less a pretty typical configuration, and, in general, everything is working fine.

Here's where it gets tricky:

* Machine A is a Fedora 10 linux box, which hosts an externally visible domain and runs, among other things, a web server. It's assigned to one of the addresses that's mapped to a static IP address.

* Machine B is a MacBook Pro, running Snow Leopard (10.6). It typically runs at 192.168.0.6, which is NOT one of the addresses mapped to a static address, but "just" a NAT address.

Now, suppose Machine B hits the web browser run by Machine A: the log files should show the traffic arriving from the local address, 192.168.0.6. However, it instead shows up as coming from 66.xxx.yyy.zzz, the external NAT-affiliated address. This seems wrong, especially since all the other machines on my network show 192.168-type addresses when hitting the web server.

I now change Machine B's address to 192.168.0.5 -- one of the statically-mapped addresses. Browsing traffic is now arriving from 192.168.0.5, which is (I think) as it should be. I now change Machine B's address back to 192.168.0.6. The web traffic on Machine B is now reported to be arriving from 192.168.0.6 -- NOT 66.xxx.yyy.zzz. It's complicated by the fact that I don't know where to look for the problem. All the log files on all the machines seem relatively normal; there are least no glaring problems screaming out from them.

View 1 Replies View Related

CentOS 5 :: Sending Messages Between Local Network Machines?

Jul 3, 2010

i am using centos 5.4 (5.5?) gnome on multiple machines in a local network.is there a program available that does the following:you type a message in a 'note'screen on one computer and can send it to one (to choose) or all machines in the local network that are online, so you can read the message on these other machines screens.

View 6 Replies View Related

Slackware :: Sudo: Umount Works, Mount Not Works?

Jul 8, 2010

I've got a problem in doing sudo working for mounting things (e.g. usb pen or optic discs). Details:The OS: Slackware 13.0The response to sudo -l command:

Code:
User user1 may run the following commands on this host:
root) /sbin/shutdown -h now, /sbin/shutdown -r now

[code]...

View 3 Replies View Related

Ubuntu Networking :: Wireless Wpa/wpe Doesn't Work On KDE But Works On Gnome

Mar 22, 2010

I've recently installed KDE 4.4.1 just to try on a Dell 1545 laptop with Ubuntu 9.10 previously installed.

My problem is that the wireless connection works just perfectly with nm-applet under Gnome, but when I login on KDE and ask KNetworkManager to connect to the same network as before, it can't finish the connection.

When I choose the connection the program asks for my passphrase, I type it and then it just sticks on "activating network" and nothing happens.

My experience with KDE is zero, so I don't even know where to start looking. I'd even tried to kill KNetworkManager and try to replace it with nm-applet, but I think there's a daemon that restarts it immediately.

View 1 Replies View Related

Networking :: Does The Command "telnet" Works When Remote And Local Are Different Operating System?

Feb 12, 2009

Is it possible to log into a remote windows computer from my local linux computer and vice-versa using the "telnet" command?

View 2 Replies View Related

Ubuntu Networking :: How To Share/Mount Hard Drives Over A Local Area Network

Mar 19, 2011

I have a computer, the one I am on now, with Ubuntu 10.10, it should be completely updated... and I can network with other computers, I can access Windows XP and 7 shared locations on other computers, and I can also get Ubuntu on other computers to access this computer's shared files.What I can't do, however, is share my hardrives that are on this computer, I have tried sharing them in /media/ and etc, but it is not working, apparently you have to mount them in some mystical way.

Another problem is getting Windows machines to access Ubuntu computers on the network - which I believe is a Windows problem, so I can figure that out some other time, but importantly, I want to be able to share my hardrives over the network.

If someone can give me some instructions to mounting and sharing hardrives(internal), and even my DVD-Drives, and portable USB devices, would also be fantastic - since, in Windows you can just right click, "share", and it's done.. It is a very useful thing to have, and I don't want to use Windows on this computer anymore, but I have no choice, really, if I can't share my storage to the other computers.

View 4 Replies View Related

Ubuntu ::Way To Use .local Dns Suffix For Both Linux And Windows Machines With Dhcp

Dec 26, 2010

I was setting up a new Linux box and router today and when I was looking to see if my custom DNS servers were being handed off in DHCP to my Ubuntu box I realized that the isp was shoving down onto my machines their dns suffix. Since I have configured my dhcp scope in the router to hand out a local dns suffix I am not sure why my suffix is not being used. Is there a way to use the .local dns suffix for both my linux and windows machines with dhcp instead of having to manually set the suffix?

View 3 Replies View Related

General :: Setup Own Local Area Network Using Virtual Box Machines

May 23, 2011

I am new to networking and trying to setup my own local area network using virtual box machines. I have installed BIND 9.7.3 using yum in Fedora (dns server) and created all necessary .conf and zone fil es. I am successfully able to resolve domain names on this host machine (dns server). for example dig @dns.domain.lan client1.domain.lan correctly resolves domain name.

[Code]...

View 5 Replies View Related

Ubuntu Servers :: Lucid - NFS Only Works With The Firewalls (UFW) Disabled On Machines

Aug 24, 2010

I have a laptop and a Desktop both systems only used by myself behind a router. Ubuntu Lucid on both and 64 bit systems. I have installed NFS with the desktop as server and Laptop as client. The NFS only works with the firewalls (UFW) disabled on both machines. My current setup on the desktop ufw is

[Code]...

View 9 Replies View Related

Ubuntu Networking :: Network Hp Printer Works But Scan Doesn't O2 Rtr Firewall?

Feb 3, 2010

i have a hp 6500 e709a printer. have configured for network printing and would like to use the scan facility.i have tried to scan from the printer but it does not find the computer. the hp documents mention advanced firewall information on incoming udp ports and tcp ports etci believe it is with my machine as my son has a windows box with the hp software and i have managed to scan from that machine.

View 4 Replies View Related

Ubuntu Networking :: Internet Connection - Boot To 10.10 Amd64 & It Works & Sometimes It Doesn't

Oct 16, 2010

I can connect to the internet on Win7 without issue. Boot to Ubuntu 10.10 amd64 & it works sometimes & sometimes it doesn't.

I've attached 4 screen photos; 2 when internet is working (Working ifcomfig & Working route -n) & 2 when internet is NOT-working (NonWorking ifcomfig & NonWorking route -n).

The 1st I notice when looking @ working ifconfig is line 3 under eth0, inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0, is missing on NonWorking ifconfig.

View 2 Replies View Related

Networking :: Wireless Connection Works But Doesn't Show In Iwconfig Command

Mar 21, 2010

Ubuntu 9.04 with working wlan. I had to restart router & wap. It doesn't seem to ever retry to connect. I know my router & wap are good, I have wireless working on other laptop (running Puppy) I had to go into 'edit connections' in drop down and use 'wireless' tab then edit 'wireless connection 1' and hit 'apply' is there a better way to do this? also, no connections show up with command 'iwconfig' edit: with ifconfig, eth1 si showing data my ip address and packets sent & rcvd. I think I'll try do duplicate this event and use 'ifconfig eth1 down' and then up again to see if it reconnects.

View 1 Replies View Related

CentOS 5 Networking :: Smbclient Works Nautilus Doesn't Connect To Share?

Sep 20, 2010

I can use smbclient -U name //ip.adresss/"My Place" to connect with no errors, but nautilus will not open the folder. nautilus discovers the computer but not the folder. maybe I need some debugging info from nautilus...

View 11 Replies View Related

Ubuntu Servers :: Mount A USB Drive In Rc.local With /sbin/mount And UUID Instead Of Fstab?

Feb 6, 2010

I run a headless Ubuntu 8.04 server, which acts as a web, email and file server. I am sticking with 8.04 as it is a LTS release and will upgrade to the next LTS when it is released.

I have two external USB drives, that I need to mount at boot. I have been using /etc/fstab up until now, with the following entries:

Code:

However, as I gather from doing searches is quite common, occasionally I get an error during boot (causing the system to drop to a recovery shell) because the USB drives take time to wake up and the system hasn't found them by the time it reads /etc/fstab.

From doing searches, it seems there is nothing you can do to fstab to fix this, so you need to mount them using an rc.local script instead, using:

Code:

The problem is, as I have two USB drives, their /dev/sdxx location changes between boots. I thus want to use UUID codes as I do in fstab, however I haven't found anything about this.

Does anyone know how I can use the mount command and UUID to mount a drive in rc.local and what options I have to use the mount the drive with the same options that I am using in my fstab entry? Obvisouly, I can't refer back to fstab using the mount command, because then I will still get the boot error issue if they are listed in fstab. And there is no space internally for the USB drives as there is already two internal drives.

View 3 Replies View Related

Ubuntu Networking :: Atheros AR8121/AR8113/AR8114 - Ethernet Works But Wifi Doesn't

Apr 16, 2010

I have a brand new ASUS EEE PC 900HA with Ubuntu 9.10 installed on it. The wireless hasn't worked yet but the ethernet is fine. I've been browsing the forums for hours to find a fix but now I've installed/queried/removed so many things I'm totally confused.

lspci -v gives me this

Code:

01:00.0 Ethernet controller: Attansic Technology Corp. Atheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0)
Subsystem: ASUSTeK Computer Inc. Device 8324
Flags: bus master, fast devsel, latency 0, IRQ 27

[code]....

View 9 Replies View Related

Networking :: Autofs Doesn't Mount Directories?

Jan 28, 2011

Hi Linux Forum People! This is my first post. Somehow I'm not able to mount directories from other machine using autofs. Autofs maps successfully loaded into NIS client, but autofs does not recognize them. Please see belowI'm running RHEL4

[root@linux2 etc]# ypcat -k auto.master
/hs /etc/auto.hs
/home /etc/auto.home

[code]...

View 19 Replies View Related

Ubuntu Networking :: Gvfs-mount Doesn't Work Through Ssh?

Jan 26, 2010

setup consist of three machines: 2 servers (A and B)(ubuntu) and my local laptop Server A is a company controlled server which holds project data Server B is our office local server, which we use for development purposes. The problem occurs when i ssh from my local laptop to server B. After loggin in, i execute a script to transfer data from A to B. This script mounts server A using gvfs-mount. It fails to mount completely and gives me the following error

Code:

Error mounting location: volume doesn't implement mount

However if i log onto server B, using the servers keyboard and monitor (using a gnome session) i can execute the line. To verify that it's something related to the ssh login, i tried the following: (My local laptop is also running ubuntu) from laptop open a terminal. See the gvfs mount work as expected. open another terminal and ssh localhost tried to execute gvfs-mount from the local ssh session and i get the above mentioned error. After googling a bit, i found that it might related to dbus (which i know _nothing_ about) and i tried

Code:

dbus-launch gvfs-mount and then tried to gvfs-mount server A, but it fails again.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved