Networking :: Multiple Eht0 Aliases - Use Specfic IP For Client Connection

Jul 13, 2009

I have a webserver setup, where i need the server to have multiple eht:0 aliases in order to do some SSL-vhosting and other stuff.

The servers eh0 is set up in /etc/network/interfaces (its an Ubuntu)

And i have added the eth aliases with : ifconfig eth0:1 123.231.213.123 up command.

This works great, i can use the additional IP�s for the SSL-vhosts, and all is good.

My problem now is that while the server itself has 1 IP, (and approx 20 IP on alias interfaces) it uses random (i think) IPs when it is to connect to other servers. E.g the main problem is that if a Vhost on the server sends out an email, the server uses a wrong IP in the headers. Thus making it seem like the email is coming from another IP than then on the Vhost it�s currently residing.

Currently, when the server connects to its smarthost in order to deliver emails, It connects from the IP that is bound to the eth0:0 interface, and not the IP bound to eth0 which is desired.

The question now is how do I sort out the IP�s so that all connections the server makes as a client, will use the first (Eth0) IP ?

And all the extra IP-adresses will only be used as "server addresses" not to make client requests.

View 2 Replies


ADVERTISEMENT

Ubuntu Networking :: Auto Eht0 Doesn't Work - Can't Connect With Ethernet Cable?

Nov 13, 2010

I've recently bought a recycled computer for my office. The plan was to get an old cheap computer and use it to write LaTex documents but nothing else. However, I can't seem to get the thing to connect to the internet. I'm on a University network which has a funny setup but I don't think that's the problem.So here's the deal. I have tried this with 9.04, 10.04 and 10.10 and it hasn't worked. The computer recognizes the ethernet cable. If I issue the command "sudo mii-tool eth0" and get back "eth0: negotiated 100baseTx-FD, link ok". However, click on the networking logo on the top right, and click auto eth0, it tries to connect for about 30 seconds, then gives up. Unfortunately I'm pretty clueless when it comes to networking so I have no idea what to do to try to fix this.

View 8 Replies View Related

Red Hat / Fedora :: Multiple Mail Is Sent To Aliases Group ?

May 10, 2009

I sent a mail to an aliases group from MS office 2003/2007 outlook. But every reciepient got four copies for that mail. It also occured another aliase group. The mail is configured in Linux Postfix.

View 2 Replies View Related

Networking :: Client Receiving UDP From Multiple Sources ?

May 14, 2009

I have to implement a client/server solution that pretty much does this:

1) Client broadcasts UDP packet;
2) client receives answer packet from multiple servers - it includes the TCP port to use next and a list of files;
3) user picks file from list;
4) client downloads from server via TCP.

I got the client to broadcast and the servers reply. However, i'm not yet getting the client to be able to receive multiple packets.

I'm very inclined and have tried to implement select, but most examples i find are for stream sockets. Once the fsSet shows a read event would i create a new socket or just use the main socket for recvfrom()ing? I assume i need at least two sockets. However i'm not sure if this will allow the client to actually receive simultaneously... so i'm kinda not wanting to guess that this implies fork and threads... Also, i assume the socket must be nonblocking (done), although i've read somewhere select would take care of this?

View 3 Replies View Related

Networking :: Login Multiple Client Pc On Using Via Openvpn Server From That Side?

Nov 24, 2010

How to login multiple client pc on the same network using via openvpn server from client side

View 1 Replies View Related

Software :: Aliases - Using /etc/aliases - Does Not Get Routed To My Email

Apr 1, 2009

I am able to send a mail message to myself from a server without any problem...

But after I have updated /etc/aliases and added the line for all of root's mail to be routed to me....

Added:
root: myemail@company.com

and ran newaliases to implement it....

If I send a mail message to root, it does not get routed to my email...

View 3 Replies View Related

Ubuntu Networking :: NFS Client Connection On Only One Machine

Dec 13, 2010

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.

View 1 Replies View Related

Networking :: Client Application For PPPoE Connection ?

Jul 14, 2010

What is the best client application for connecting through PPPoE (DSL connection)? Gnome's default network manager isn't very useful. I created a DSL connection but don't know how to use that.

View 1 Replies View Related

Networking :: Connect To The Client Using The Already Existing Ssh Connection?

Mar 22, 2011

I was wondering if there was a way to connect over ssh "backwards". For example, lets say there's a client connected to example.com via ssh from behind a router. Well you wouldn't be able to ssh to that client unless the proper ports were forwarded on the router right? So I'm wondering if there would be a way to connect to example.com through ssh then from there connect to the client using the already existing ssh connection.

View 4 Replies View Related

Networking :: Sharing Internet Connection With More Than One Client

Jan 30, 2009

I have an ubuntu 7.10 ICS server that works fine and I have routed my traffic using firestarter to my windows PC. my server's IP is 192.168.0.1 and my windows client is 192.168.0.2. now, I have bought another PC and I want to assign 192.168.0.3 to it and connect it to ubuntu server. in windows, all I needed to do was to connect the first client to first network card, second one to second network card, bridge two connections in my server, assign 192.168.0.1 to the network bridge in my server and 192.168.0.2 and 192.168.0.3 to my clients, then share my internet connection. I also could access shared files in any computer from all of them. can I have the same functionality with a linux server?

I'll make a list to make it easy if you don't wanna read the whole post:

things I want:

1. assign one ip address to multiple interfaces in linux, making them bonded.

2. sharing the internet connection with both clients.

3. ability to use all shared files over a network.

View 4 Replies View Related

Networking :: Connection Refused Error 111 In TCP Client Server?

Aug 24, 2010

I am facing connection refused error 111 in TCP client server program, in android native code which in C , but if code is in JAVA it works fine, but i want to continue in C only, in manifest file i have given permission and ip, port is correct .What am doing wrong?? or is their any network setting?? am using UBUNTU 10.04and If both client server Linux pc it works fine. only if android emulator becomes client then am getting connection refused

View 1 Replies View Related

Networking :: Throttle Client Connection Speed From NAT Server

Sep 5, 2010

I have about 5 computers on my network that get their internet connection from a Linux NAT server.

192.168.12.02 is a Linux server that has a NAT set up to share the internet connection.
192.168.12.03 is a download server that is almost always downloading
192.168.12.05 - 192.168.12.20 is assigned by DHCP to users.

I want to make it so that the download server runs at full speed but is throttled only when someone from the user IP addresses range tries to use the NAT server.I think I'm looking for some way to set the download server's packets to have a lower priority than the client's packets. Is there a way to set this in the Linux server?

View 5 Replies View Related

Ubuntu Networking :: How To Use Multiple Vpn Connection

May 1, 2011

i have a problem in ubuntu and that's "how to connect to multiple vpn Connection at the same time ? " it's so important for me .

View 1 Replies View Related

Ubuntu Networking :: Still Can't Share An Internet Connection With Windows XP Client?

Feb 1, 2010

I have been trying off and on for weeks to share my Internet connection with a Windows XP client (netbook). While I can ping back and forth between the two machines, in the form of a ping test, I can't get to the Internet from the client, no matter what I try.

My Ubuntu 9.10 desktop (host) has two NICs, eth0 and eth1. eth0 connects to the Internet. eth1 goes to the Windows XP client. Regardless of whether I use an Ethernet crossover cable or a standard cable, I can get the two machines to talk to each other, but no further.

Things I already tried:

-Tried setting eth1 to "shared" mode in NetworkManager on the host. I set the Win XP machine to automatically acquire an address & DNS. Didn't work.

-Manually configured the IP settings on both machines, like this:
client:
address 10.0.0.2
subnetmask 255.255.255.0
gateway 10.0.0.1

[Code]....

Despite all of the above, I still cannot share the host's Internet connection with the client. I don't understand where the client's traffic is going, and why I can't share the connection. As far as I know, I am not doing any sort of firewalling or blocking on the host, so there is no obvious reason that the client's traffic simply disappears. I just know that whenever I open a Web browser on the client, all I ever get is error messages.

I have had no issues setting up a shared connection when the host runs Windows XP, so I am pretty sure there is no broken hardware causing the problem. Why can't I share the connection under Ubuntu?

View 1 Replies View Related

Ubuntu Networking :: NX Client - Ssh: Connect To Host Port 22: Connection?

Jul 29, 2010

I have a Windows machine on which NX Client has been installed. I wanted to test if I could access my Ubuntu box. The Ubuntu Box has NX Server, Node and Client installed. When I try to log in from the Windows machine using NX Client with my Ubuntu username and password I get an error connection refused.

The following service is running: OpenBSD Secure Shell server sshd How can I resolve the issue?

View 3 Replies View Related

Ubuntu Networking :: Mac Terminal Server Client (VNC) - Cannot Delete Connection

Sep 9, 2010

So I setup VNC on my Mac (that runs Snow Leopard) and my PC (that runs Ubuntu) and I gave the IP address to Ubuntu, entered the password and it worked fine. The problem is that it still works fine... I only made this connection to test it because I thought it'd be cool, which it was (for a while). Now I cannot delete this connection whatsoever!

I have tried changing the password on the Mac, limiting the users, and even switching it off completely by unchecking its checkbox. I have also tried limiting the users... BUT UBUNTU STILL MANAGES TO GET INTO MY COMPUTER! This is really annoying because anyone using the PC downstairs can now go into my Mac and mess about with things - I hate this. Somehow, Ubuntu has locked in on my Mac and, despite the changes, can earn access no matter what!

View 5 Replies View Related

Ubuntu Networking :: Script To Monitor Connection - VPN Client Disconnected

Jan 22, 2011

My promlem is that I wrote a few simple script to monitor the network connection as follows:

script 1 "netmonitor.sh"
#!/bin/bash
# /usr/local/bin/netmonitor.sh
HOST=www.google.hu
ping -c 1 "$HOST" > /dev/null 2>&1 .....

So it's run every 5 minutes, and it works well, when it sees host is down, it restart the connection, BUT as the log shows below, about a half an hour after using the connection (for example the ssh through the internet or the vpn clients disconnected) , br0 (probably) goes down or something and the script needs always restarting the connection...

The log:
Fri Jan 21 14:45:01 CET 2011 Network is ready! .....
Fri Jan 21 15:55:41 CET 2011 Network seems down, rechecking...
Fri Jan 21 15:56:21 CET 2011 Network is down, restarting interface br0!
Fri Jan 21 15:56:48 CET 2011 Network is ready after interface br0 restart! .....

Then if I use again, its ready... Is it possible, that if system don't use the connection after getting the DHCP lease, it close the connection automaticly? Anyway it works ok, but I don't want to owerwrite my router's flash in every 5 seconds with te new lease, my script probably defeat it soon if I don't do anything.

View 3 Replies View Related

Ubuntu Networking :: Connection Drops While Downloading A With Bittorrent Client

May 29, 2011

I tried Ubuntu, Kubuntu and now Xubuntu, all 11.04. I've also tried Deluge, Transmission and Ktorrent. With 10.10 everything worked fine (all variants). Also, in Windows 7 it's working fine. But now it drives me crazy. As soon as I start a torrent, the download starts but after 30 seconds or so the download drops to a zero. Also, I'm not able to browse anymore. The networkmanager tells me I still have a connection.

Some say it has something to do with the number of peers the client connects to, or it's my router. My router isn't the problem, as it's working fine with 10.10 and windows. So maybe it's the number of peers right? Question. Why can I connect with over 200 peers at the same time while I'm using 10.10 or windows, but can't do it with 11.04? Better put, what should I do to get this working fine again? Going back to 10.10?

View 3 Replies View Related

Networking :: Samba Client Shares Disconnect Over OpenVPN Connection

Jun 23, 2010

My network is barely functional. I'm running 2 linux servers connected by openvpn (tun) through routers on both sides. There are Windows clients (98 and XP) on both subnets. One server (ls3) acting as PDC for the domain. The Windows clients use the respective linux boxes as gateways. On the server side (ls3 which is both openvpn server and samba server), all the clients can read/write properly to shares on both sides. The problems are all on the client side. Share connections to the server side disconnect after a few moments.

Browsing on the client side windows machines is fine. I can see shares on the server side. Some server side files open and are readable, writable, other server side files will not open. Some samba logon scripts on the server side can be opened from the client side. Others open after a long wait to a blank file! Permissions on server side files are set to 777 for testing. If a file won't open or reads "blank", that doesn't change no matter how many times you try. A non-readable/writable file overwritten by a readable/writable one can be read and written to!

I can ping successfully from any client on either side to any other client by either ip address or workstation name. Firewalls on both side are set to forward tcp and udp traffic going to port 1194 to the respective gateway linux boxes. Iptables on both linux gateways are down for testing. I tried reversing the openvpn server/client roles with the same result; the same physical side of the network had the problem. On one of the windows 98 clients, I wiped out the networking configuration completely and rebuilt it from scratch. Same result.

One one of the windows xp clients, I tried to rejoin the domain. It went through successfully but the result was the same as above. The network was operating smoothly for several years until the client side dsl modem broke last week. It was replaced with a newer model and at the same time I migrated from a pptp connection to openvpn. How to resolve this, Is this something to do with openvpn? Is this a network hardware problem? Am I missing something in the port forwarding on the routers? My smb.conf files are ancient except I added interface tun0. I have never seen 2 files sitting next to each other in the same directory where one opens and the other doesn't!

I'm running Mandrake 9.2 on the client side and Mandriva 2008 on the server side. I have a Sonicwall firewall on the server side, a Westell 7500 on the client side. I note that during the modem install, the http port was opened to the linux box on the client side and the access log got huge over the weekend and I ran out of disk space until I closed it down and deleted the log. I tried a simple test while viewing /var/log/daemons/errors on the client side. From a windows workstation in the client subnet, I opened a dos window and tried to print a file located on the samba server on the openvpn server machine which I knew NOT to be problematic.

The file printed and there were no errors reported in the log. I repeated the test with a known problematic file. The file would not print. The errors log noted:
Authenticate/Decrypt packet error: packet HMAC authentication failed
I regenerated the static.key file on the server side and scp'd it to the client side and restarted both openvpn's. I checked for duplicate files named static.key on both sides. Same error.

View 1 Replies View Related

Programming :: Detect A Closed Tcp Client Connection When Client Is Only Receiving Data ?

Mar 9, 2011

I am writing a TCP server in C, and the server listens to incoming client connections and accepts them. It then creates a thread to handle the client. The clients are expected to only receive data from my server and not send any data. So if I use a select() call with a recv(), I believe that the recv() will just block forever since there will not be any data coming from the client. If I use a non-blocking recv(), then this will just return a 0 which tells me nothing because the client is not expected to send any data. I am not sure if I have misunderstood some socket concepts, but I need a solution to detect when the client has disconnected so that I can close the socket and stop sending data to the client. As I understand it, simple ACKs etc are not captured by the recv(), and only data sent by the client will cause recv() to return a non-zero value, so I am not sure how to know when the client has disconnected.

View 7 Replies View Related

Networking :: Working With Multiple Network Connection?

Jul 29, 2011

I have a pc running Ubuntu 10.10 with 2 wired net card and 1 wireless card, all of them connected to a router through which connected to the internet. My question is when I launch a connection, such as ping or visit a website with browser, which one connection the system uses or both of them? Can I manually specify one connection to use? How to do it?

View 3 Replies View Related

Ubuntu Networking :: Attempting To Share Internet Connection With Windows XP Client

Jan 25, 2010

Over the last several days, I've been trying like hell to share my (wired) Internet connection with a netbook, running Windows XP, attached via crossover cable to my desktop's extra NIC (eth0). The eth0 link is established, but I can't get to the Internet from the Windows XP machine.I can ping one machine from the other, but any bits sent from the Win XP netbook mysteriously disappear when trying to reach any website.

There is no firewall running on the Ubuntu machine as far as I know. Windows Firewall is likewise disabled on the Windows XP machine. The Ubuntu machine connects to the Internet through another wired NIC, eth1.In Windows XP parlance, what I am trying to do would be called "bridging," where eth0 and eth1 would be the two parts of the bridge. In fact I already made it work, with both the netbook and my desktop running Windows XP. It took about 5 minutes.I can't believe what a huge pain this has been in Ubuntu. I'm pretty much ready to give up. There seems to be no way to get an Ubuntu system and a Windows XP system to share an Internet connection.

View 5 Replies View Related

Ubuntu Networking :: Rsync Transfer From Client To Server - Slow LAN Connection

Dec 7, 2010

This is a recent problem, and I can't pinpoint any change/upgrade that would cause this. Rsync transfer from Client to Server:
sent 11756196 bytes received 1032741 bytes 138258.78 bytes/sec
total size is 144333466390 speedup is 11285.81
Pinging back and forth from each machine is fine. No Ifconfig errors Client, but Server has RX packet errors.

eth0
Link encap:Ethernet HWaddr 00:11:25:37:ee:44
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:25ff:fe37:ee44/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:41786 errors:2157 dropped:0 overruns:0 frame:2157
TX packets:34138 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:55615449 (55.6 MB) TX bytes:4737538 (4.7 MB)

What's the next step?

View 3 Replies View Related

Networking :: Connection From FTP Client To PURE FTPd Server Fails At MLSD

May 13, 2010

I have a "friend" who hosts a couple of websites that I maintain. I have always used filezilla client to connect and update the files on the website.I lost access for a little while and he said that "The profiles had accidentally been dropped".He reinstated everything but now I cannot complete a log on session. I maintain several other websites which have the same PURE FTPd server at their end and I can connect to these OK.The delicacy of the matter is that, with no changes at my end, and my other sites working, logic suggests that something has changed at his end. I have very patiently worked through all his suggestions but to no avail.I can't suggest that he is at fault when he claims expertise in the field and I am a complete lamer when it comes to FTP.

I wonder if anyone would be kind enough to review the log on result below and see if they can throw some light on the situation for me.(I have anonymised the IP address and other information for security reasons)

View 3 Replies View Related

Networking :: Sharing Internet Connection To Thin Client From RHEL Server 5

Sep 22, 2010

plz can any one help me in configuring linux server 5.0 to share the internet connection to thinclient and the steps reqiure at client side and server

View 2 Replies View Related

Ubuntu Networking :: 9.10 - Multiple Wireless Connection - Disconnected

Feb 16, 2010

Since I have started to use Ubuntu 9.10, I have had multiple wireless connection troubles. First of all, it says the signal is 2 bars, when in fact my router is right next to me as of right now. Second of all, when I try to connect to it, it asks for my password 3 times, then says disconnected. I'm on a hardwire right now, it's across my keyboard, and I'm in a tangled mess.

View 2 Replies View Related

Networking :: Extremely Slow Ethernet Connection On Multiple Distros

Jul 9, 2011

the title says I have painfully slow(connection times out when loading google) ethernet connection on my new pc. This comp had similar problems with the OEM windows 7 install but now it's strictly a linux box so I'm anxious to get it fixed.

I'm running Ubuntu 10.04 and Slackware 13.37, and have wireless working on Ubuntu but haven't set it up on Slack yet. The only thing I've done so far is try to change speed and duplex using ethtool but it didn't work, the settings stayed the same. I'm writing from another comp so I'll do my best to post any info you request but I'll have to use a flash drive lol

View 2 Replies View Related

Networking :: Netstat Shows Multiple Identical Instances Of Connection

Jan 4, 2010

We are running a combination of Apache-2 with mod_jk connecting to tomcat workers running on separate hardware.Strange: "netstat -tn" on the Apache server outputs identical combinations of source address, source port, destination address and destination port.

Has anybody else experienced this phenomenon? (I googled and searched LQ but couldn't find anybody else reporting this)Is netstat broken, or is there another explanation?

View 5 Replies View Related

Fedora Networking :: Trouble Automating IP Aliases

Jun 18, 2010

My system is F13 (upgraded from F11) with all of the latest patches available. I haven't gone through and combined all of the rpmnew configuration files, but none of them seem to address networking.I'm trying to get subinterfaces (secondary IP addresses) to work in Fedora 13. So far, I have been able to configure them on the command line, but not to get them to persist on booting.My base address for the NIC is: A.B.C.254. It is statically assigned.

View 5 Replies View Related

Networking :: Nslookup And Display All The Aliases For A System?

Nov 10, 2010

Not really a linux specific thing I have gooled the heck out of it and tried nslookup -a and a few other options nothing gets me what I need. The question is I have a machine with several aliases in dns. How do I do a nslookup and display all the aliases for a system.

I am trying to see if something it aliased correctly but i cannot list all the names a system is know by.

I am sure its something simple I am missing with a switch.

View 2 Replies View Related







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