Ubuntu Networking :: VPN Client And Samba/SSH Server On One Physical Machine?
Jun 3, 2010
I'd like to access a samba/SSH server which itself is connected to a VPN Server, therefore acting as a VPN Client. As soon as the VPN Connection is established, samba and ssh connections to this VPN Client get a timeout. But not all of them.
To get a better understanding I made an overview. The first one is a general network overview, without any VPN Connection, the second one with the VPN Connection established.
Network Overview without VPN
I can access the server in several ways:
*From the router via ssh (router runs ipcop with busybox)
*From the laptop via ssh (putty via Windows 7)
*From the laptop via samba
*From the internet via ssh (port forwarding to the ssh server)
Everything is working as it should.
Now the server that runs ssh and samba service connects to a VPN Server on the Internet, this is also working fine. Now it gets weird. The only samba/SSH connection that is still working is ssh directly from the router to the server. Everything else gets a timeout:
*From the laptop via ssh (putty via Windows 7)
*From the laptop via samba
*From the internet via ssh (port forwarding to the ssh server)
Network Overview with VPN active
Why is that? It seems from the little understanding I have of vpn and networking, that incoming packages (like samba request from the laptop) don't get send directly back over eth0 but over the vpn connection. This seems somewhat logic, BUT ssh from the router is still working. Why from the router and not from the laptop? I really can't get my head around it.
tldr; One Client acts as VPN Client and samba/SSH Server. As soon as the VPN Connection is established samba/SSH stop working, but only partially.
I have set samba domain. I am able to add win 7 and xp clients. All r working fine. But I have a doubt. If I shutdown the samba pdc server, I should be able to login the client machine with the same profile (which I had, when the samba pdc server was up). Now , if I shutdown the sambapdc, I am able to login the client machine, but new profile is being created. How to avoid this.
How to say to samba that the client machine should load the same profile which was created when the server was up and running. I do not want the client machines to create new a profile when the server is down bcoz in windows domain, when the windows domain is shutdown, the client machines are able to login with the same profile (the profile which was created when the domain was up). I wish to have same thing in samba pdc also.
If I have only 1 physical WLAN interface, is there some hackery that can be done so that it can be a client of an existing access point and at the same time also act as an access point for other clients? I have an existing 802.11g ADSL router, and I'm going to be building an HTPC which will have 802.11n. My laptop also has 802.11n, but at the moment it only connects at 54Mbps because thats what the AP supports. I'd like to be able to have the HTPC be a client of my ADSL router, but have my laptop be a client of the HTPC, so copying files to it will be faster.
I have been using Ubuntu sense about 6.10 and never had to network with a Windows computer before. I have a decent understanding of Linux itself but I am having issues with this samba client. I have a clean install of Ubuntu 9.10 and am trying to use samba to access my shares on a Windows XP(SP3) computer. I am on the network just fine, and all the computers on the network have static IP addresses. When I go to Places->Network->Windows Network I see the "TITANNET" workgroup, (Even before I changed my workgroup to "TITANNET" in the smb.conf file.), but when I try to access it I get this error:
Code: Unable to mount location Failed to retrieve share list from server.
P.S. I tried using /etc/init.d/samba restart but it did not work, I am not sure I am even running the samba server. (Well, it is obvious I am not, what I really mean is what am I running to (not =D)access the shares on my Windows PC.) P.S. I know that this has probably been posted before. I have searched and searched, I am about 1.5 pots of coffee and 4 hours into this.
I'm trying to set up a fileserver on my 10.04 machine, and access the files from Windows 7 via wifi. I can see everything alright, but the transfer speed to Windows never gets higher than 70KBps. Both computers can access the web at 800+KBps. I've also checked with an OS X machine on the same network, which was also extremely slow, so I'm fairly sure that the problem is on the server's side.
Is there some way that I can use apache/iptables to serve both of my servers through the same basic domain? I'm not talking about VirtualHosts either, I don't believe ( despite the fact that's all I can find anything to read about on Google when searching for this ).
Anyway, the problem is that I have a TorrentFlux php torrent-client that I run so I can add stuff to the download when I'm not around. I don't want to put this on my regular webpage server because there's just not enough diskspace in that machine. On the other hand, I don't want to replace that server all-together because the other machine is my desktop and would not make a reliable host.
So my idea was that there could be some way to have the apache2 server on my dedicated server redirect a subdirectory in its webroot to the webroot of my desktop's TorrentFlux server, but over standard HTTP ports so that it is more like the server is serving up the content of my desktop server through its HTTP service, instead of simply redirecting.
The reason I want to do this is because so far I have to use the TorrentFlux server on a nonstandard port so my dedicated server can still host its own things on port 80, but I've been running into several situations where the browsers I want to use do not support the nonstandard port such as with some instances of IE or the browser on my BlackBerry.
Anyway, I'm not looking for a step by step or anything ( though it couldn't hurt ) but I just need some ideas on what I could search for to get some better ideas. There's probably some term for what I want to do I'm not even aware of that would help me greatly.
Runnining Ubuntu 7.04 and apache 2.2.4 along with shorewall 4.0 as my routing/firewall software.
I need to deploy Windows Server 2008 R2 onto a server that is currently running Linux. Effectively, I want to restore a Windows disk image onto the Linux system hard disk.I don't have physical access to the machine, so I need to find a way to do everything remotely, using SSH (no KVM). And the Linux machine only has one hard disk - the one containing the OS. However, I might be able to create a partition in free space at the end of the hard disk to store the image (I might need some help with the Linux commands). Or perhaps the image file can be pulled via FTP.
I tried Acronis but was disappointed to find that it doesn't seem to allow me to overwrite the system partition (unlike the Windows version of Acronis, which is capable of doing this with a restart).
i have sun Virtual box installed on my centos as my host os and centos as guest os.The ip on Sun virtual box virtual interface is10.0.2.15 and the ip on the physical machine is 192.168.1.11.when i try to ping the ip from my vps on centos to my physical machine it pings but it does't work when i try to ping my vps ip from my physical machine.Please recommend the route enteries i need to do in physical machine
I try to access my ubuntu machine via my Windows Machine (Samba Server on Ubuntu Machine). Anytime I try to access the machine it asks me for my password...I enter it but it says it is invalid....is there anyway to reset it? I have already tried to remove and purge everything Samba related and then tried reinstalling, but that still didn't do anything
I read once that you could use VMWare's converter to convert a physical machine into a virtual machine to run in VirtualBox. Can someone point me in the direction of a tutorial or just give me instructions on how to do this? I was very confused by the converter and how to get the image to work with virtualbox.
I have a CentOS + Samba server and Windows XP client machines. Users, passwords and permissions are entered on the server machine.users and passwords ( same as on the server ) are entered in the XP client machine.When attempting to access a public file on the server using a XP client machine and the IP address of my server, I am asked a user name and password and none of the already entered seem to work. I cannot access the server file (prompted again and again to enter user name and password). What did i miss
In a newly installed Linux machine which is a client machine, is not listening to NIS domain server even after setting IP address ,default gateway,and subnet mask.What are all the changes to be done in configuration file.And how can be solved
I have a very nice SUSE 11.2 Samba PDC that runs well with Windows XP clients. I am using NETBIOS for name resolution since I dont want to put in a DNS server because my router already has one, Im pretty sure it would make things more complicated. I enabled wins support in smb.conf and made the name resolve order with lmhosts first. lmhosts lists all the ip adresses with their computer names in capitals. I hope thats right. I set up my windows 7 with the reg file from the samba wiki on windows 7 [URL].
That's great now I get the old screen from XP in windows 7 when joining the domain. I gave the machine netbios name MAINPC a smb trust account MAINPC and added the unix user MAINPC$ that should all work. I manage to successfully join it says welcome to domain, afterwards an error appears "changing the dns name of this computer to "" failed" and something bout not finding the domain controller. although I joined. then I resatart and when I try to log on it says "trust relationship failed". How to make it join and logon properly.
So a while back I decided I wanted to get to know Linux a little bit and I figured the most immediately useful thing for me would be a small home server. About this time I discovered plug computers and I eventually bought myself a Guruplug for this purpose - a small, cheap, power-efficient ARM architecture thing running Debian 5.0.6. Since then I've kind of ambled along with the project as and when time permitted (installing, tweaking, scouring manpages and tutorials is fun, but takes a lot of time), and have now finally got a nice big external harddrive formatted as ext3 and hooked up to it. The time seemed right to go for the samba install. I installed from the Debian repository, configured using SWAT and immediately hit problems.
Since the only user is me and the only access to the computer is over SSH, I have few accounts - there's root which I've disabled from access altogether, there's my sudoer account magnus, and there's my new test account magnus-smb. This one is a standard user, and has identical Unix password and samba password (added with smbpasswd). I intend to keep this up with a separate samba-access account - I'm a little paranoid about allowing any kind of access to sudoer accounts and won't even let SSHD accept password based logins.
Setting up samba, I basically tried to make it do as little as I needed to get a local file server going. The only share is homes, and its path goes to my external drive. The drive itself is mounted as rw,noexec,user from fstab.
Now, with all of that set up I'd hoped I'd be able to mount my homes shares and go. This proved not to be the case - if I set encrypted passwords = yes, my Windows 7 clients behave differently. The magnus account connects but can't authenticate - all passwords are rejected. The magnus-smb account is apparently accepted but then receives a "network path not found" error. If I set it to no, both accounts are prevented from even attempting to authenticate, and I get an error message about "this account is not approved for logging on from this station" (translation from Norwegian). I've been searching around but not finding much. I did find one article claiming this was easier after samba 3.3 and discovered that my manpages said samba 3.2. Yesterday I therefore decided to reinstall samba from source, only to find that the current stable release (3.5) also claims to be version 3.2 in it's manpages, so I probably might as well not have bothered. Oh well, at least I've installed something from source now.
Code: # Samba config file created using SWAT # from UNKNOWN (Q@) # Date: 2010/12/08 12:59:41
I have a number of Ubuntu machines running. Our NAS is FreeNAS. I am typing this on an Ubuntu 10.04 desktop that is successfully connects to an NFS share on the FreeNAS box every day. In addition, we have 3 10.04 server machines that also stay connected to the share successfully, Yesterday, I installed a new 10.04 server machine using IP 192.168.0.11. Everything works except connecting to the NFS share. It always returns with: mount.nfs: mount to NFS server '192.168.0.13:/mnt/amrd0s2/public-NFS' failed: timed out, giving up
Here's what I have checked: I can ping 192.168.0.13 (obviously) The NFS export mask is set to 192.168.0.0/16. The other machines are all on the same subnet as this problem machine (192.168.0.*) nfs-common, nfs-client, and portmap are all installed and running correctly. portmap is running correctly showmount -e 192.168.0.13 give the proper response:
Export list for 192.168.0.13: /mnt/amrd0s2/public-NFS/ 192.168.0.0 iptables isn't even installed (these machines are segregated in a private network behind a hardware fire all) There is nothing related to NFS is any of the syslogs. dmesg has one entry: [6.025966] FS-Cache: Netfs 'nfs' registered for caching which is insignificant. how to at least debug the nfs-client short of downloading the source and actually stepping through the code.
I would like to be able to mount a share served by my mac os X machine(10.6.1). I have read the Ubuntu community doc on Ubuntu samba clients.It didn't say what to do when using dynamic LAN I.Ps.I understand the way to go is to use avahi on the client side(Ubuntu) and Bonjour on the server side(mac os 10.6.1).I can't find anything about how this is done.What do i need to do to set up the client side(Ubuntu) to use avahi with SAMBA?.Because in the Ubuntu community doc it just referenced /etc/hosts, which is for static I.Ps.So i'm assuming that SAMBA on Ubuntu doesn't use avahi by default.All i need to know is how to set up the client side of SAMBA on Ubuntu when i'm using dynamic LAN I.Ps.
i have installed nfs server on my redhat machine.when i want to mount shared data from client(suse)machine the following error occur. "mount.nfs: mount to NFS server '10.3.31.146:/home/usbtest' failed: System Error: No route to host" both machines ping each other successfully.
I have Samba PDC server on CentOS 5..we have 10 thin clients in our network which were working fine previously with the windows Terminal services... Now i have replaced my windows 2003 Domain to Samba Domain Controller.. Is there any why i can connect our thin clients with SAMBA DC in the our environment?
how to make a new Ubuntu 9.10 box use our LDAP/Samba server for user authentication. Our Red Hat and Windows machines all use it just fine. I've been trying to use the auth-client-config and libnss-ldap packages for this purpose, but I must be missing something. I'm pretty green with LDAP, so this is my first time diving in... Is there a good How-To or step-by-step read on this? All of my searches lead me to setting up Ubuntu as the server, and that isn't what I want. I've also tried the steps listed in [URL] for the LDAP Authentication section.
I have configured samba server on fedora machine and i am trying to authenticate a winxp machine through samba server but the issue is winxp machine is not becoming the part of the domain. The error is A domain controller for the domain HOMEDOMAIN could not be contacted.Ensure that the domain name is typed correctly. If the name is correct, click Details for troubleshooting information.
here is the configuration file text..
# Samba config file created using SWAT # from UNKNOWN (8) # Date: 2010/01/31 18:51:36 [global] workgroup = HOMEDOMAIN server string = Samba as Domain Controller.
I have a 11.1 NFS server and several 11.1 NFS clients. If for some reason the server shuts down before the clients then the clients become almost frozen, particularly KDE is rendered useless even after cycling back to init 3 then init 5. I would like to make the clients immune to shutdowns on the server.
I've just set up NIS on my home network (probably not necessary on this scale, but I wanted to try it out). The server and the clients are all running Debian Lenny. I've got it up and running and have my NIS users on the server logging into graphical desktops on a client machine.My problem is this: The users cannot access a lot of services that are native to the client because they're not members of the right groups (for example, they have no sound because they're not members of the audio group). I figured it would be easy; just add users to groups with the usermod command but the response I get is that the user in question is not present in /etc/passwd. If I understand NIS correctly I'm not supposed to add my users to /etc/passwd on the client machines.
I just set up an ubuntu 9.10 server (no desktop environment, command line only) and I'm unable to see my samba share. I followed these instructions. Here are the relevant parts of my smb.conf file: Quote:
workgroup = JASONGROUP # I un-commented this security = user
I am facing a problem which joining my linux machine to SAMBA Primary Domain Controller (Running on Centos 5). I am able to join Windows XP machine to the domain, but i have no idea how to do it on Linux Client.
I am using VNC to login to remote machine (vncserver). My question is; How can I login to remote machine (vncserver) through VNC client, without having to login to vncserver first physical. For better explanation here is an example: If john wnat to login to vncserver remotely first he has to login the vncserver physically then he can login remotely.