Networking :: Creating Own Network Program For Multiple OS

Nov 19, 2009

I have some novice to intermediate programming skills from a past life. What I want to do is create a program and run it on two separate computers to just get them communicating together over the network on a basic level. I would like to do this in a language that doesn't limit me to a specific OS, this way I can have a linux and windows computer talking. However, I would prefer a language that can be useful down the road as well. My second inspiration, next to networking, is web design and web programming, which I hope to dig into as well eventually.

I'm not aiming to do anything overtly-complicated. One example that comes to mind would be a program that forwards any typed characters on one computer over the network and displays them on the other, and vice-versa. I guess the program would run over TCP/IP. However, it would be nice to learn how to do this in a language that not only works on multiple OSes, but also has the ability to allow me to program my own communication protocol, aside from TCP/IP, down the road. My intention with all this is to learn some network programming for fun.

View 11 Replies


ADVERTISEMENT

Networking :: DHCP - Creating Multiple Subnet Pools For Different Hosts?

Jul 16, 2010

I am trying to configure dhcpd to provide two different pools of IPs- one for dynamically named hosts specific to MAC addresses, and another for everyone else.So, a machine with X MAC address connects, gets an IP from e pool, and the server updates DNS with the address under a specific hostname.For the other pool, it just assigns the IP, no DNS updates.The "class" function doesn't appear to allow anything but pattern matching, and I can't find anything that specifies what "allow" and "deny" options therere for the pool command.Here's my config so far - will this do what I want?

Code:
key dhcpd {
algorithm hmac-md5;

[code]...

View 2 Replies View Related

Networking :: Creating Simultaneous Network Connections To A VPN And Local Area Network?

May 31, 2010

I'm working with a Ubuntu 10.04 LTS system with two network interfaces (both Ethernet). I wish to setup this system such that it is simultaneously connected to my local and an OpenVPN network and able direct traffic between the connections depending on what program is sending the traffic. The problem: Under my current OpenVPN configuration all network traffic is directed to the VPN.

My OpenVPN config file (some details omitted)

--remote [gateway ip] # vpn12 load:
--remote [gateway ip] # vpn11 load:
--remote [gateway ip] # vpn15 load:
--remote [gateway ip] # vpn16 load:

[code]....

In practice, I would like OpenVPN to operate out of one of my two network interfaces and leave the other interface connected to the local network. Then by default all network traffic should be directed to my local network unless I specify (on a per program bases) that certain traffic should go though the VPN. These two network connections can (should) stay completely independent of each other and do not need to talk to each other.

View 2 Replies View Related

Ubuntu Networking :: Creating A Simple Workgroup Network

May 11, 2010

I am using an Ubuntu 64 bit desktop. I need to create a network (the way you create a workgroup in windoz). I have two other machines running Ubuntu also and all connected to a 3-Com switch through ethernet. I would prefer not to use DHCP, and just have a simple network where I can share resources like drives and printers.

View 3 Replies View Related

Networking :: Creating A Non-transparent Network Bridge In Debian?

Apr 26, 2011

I am trying to set up a network like this:

Internet <---> Router <---> Debian server <---> Windows PC

I want the server and PC to both have internet access, and I want to be able to forward ports from the router to the server. I know how to configure the server to give the PC internet access, but how would I assign an IP address to the server and give it internet access? I have used a very similar setup a few years ago, but I can't remember how to do this.

View 5 Replies View Related

Networking :: Creating Accessible Network Shares On (Fedora 15)?

Jun 29, 2011

Currently I am trying to get some fedora shares to simply connect to each other to access a read-only shared folder on a host machine (no security/encryption even required for these files!). I've tried to get a smb network share going but that didn't work (can't connect with nautilus), I've tried a quick fix with daap and rhythmbox so that they can at least access the music, but rhythmbox fails very miserably trying to connect/create that (and mt-daapd didn't help much) - Basically I get errors saying the host is unreachable.

I haven't even set up a firewall yet for this network and already I'm running into these fundamental problems. Currently I'm using Fedora 15. On a whim I tried the "public" folder and had sharing of the public folder over the network enabled - yep, didn't work (and I certainly didn't expect it to). I would be trying some more advanced CLI stuff, setting up an ssh server or something, but the computer-challenged people who have to access these files just want to be able to click something and have it work.For the operational requirements of this setup, a file synchronisation system would work (although highly inefficient since it would mean gigabytes sent over the network).

View 4 Replies View Related

Fedora Networking :: Creating Network User Accounts And Enforcing Their Use?

Nov 8, 2009

I have a small office network here which consists of three machines running Fedora 10 and a dev server running CentOS 5.2. I have no Windows machines, and have no intention of having any. I would like to use the CentOS server as the Linux equivalent to a domain controller in Windows. Use case is simple - I will still have a local root account on each machine, obviously, but I want the three staff users to be network accounts. I want them (like a Windows domain) to be able to login on any computer using their network user credentials and *not* have local credentials on any computer.

I've been Googling like mad on this, but I can't find a definitive answer or a sensible HOWTO for this use case in Linux. Others have suggested I do it all in Samba, but I cannot find an example Samba configuration that behaves as I describe above. Another article I found suggested OpenLDAP.I'm lost. What's the best way to do this with a CentOS controller machine and Fedora 10 workstations? Can anyone point me to some good resources on the matter?

View 4 Replies View Related

Ubuntu Networking :: Error While Creating Wireless Network - Set Failed On Device?

Jan 16, 2010

I have been working on this for a while now and am absolutely stumped. Basically, what i am attempting to do is make my ubuntu box into a gateway for my network. I have everything working thru hard wire, but I simply cant get the wireless to work. No matter what I do, I cannot get my wireless card to transmit an essid and allow nodes to connect. I have tried assigning it in the interfaces file (shown below), and I have also tried manually modifying it using the iwconfig command. Here is the topology:

eth1: internet WAN
eth2: ethernet out to LAN
ra0: wireless out to LAN
Here is a copy of my /etc/network/interfaces file:
[CODE]
auto lo

[Code]...

View 2 Replies View Related

Networking :: Creating Red Hat Network Similar To Active Directory(netwok Login)?

Sep 22, 2009

I want to create a network similar to windows network on linux .Users should have profiles and can do network login similar to active directory on windows.

View 2 Replies View Related

Networking :: Multiple Gateways On Same Network?

Dec 1, 2010

I have 3 servers interconnected with IPs 192.168.150.1-3. First two has internet connection and third first server uses them as gateways. After googling and reading howtos I managed to get it working: The firewall for ssh on first server is defined

Code:
...
iptables -A EXTIN -p tcp --dport 23 -j ACCEPT
iptables -A FORWARD -p tcp -d 192.168.150.3 --dport 22 -j ACCEPT
iptables -t nat -A POSTROUTING -d 192.168.150.3 -p tcp --dport 22 -j SNAT --to 192.168.150.1
iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 23 -j DNAT --to 192.168.150.3:22
...

On Seconds server:
Code:
...
iptables -A EXTIN -p tcp --dport 23 -j ACCEPT
iptables -A FORWARD -p tcp -d 192.168.150.3 --dport 22 -j ACCEPT
iptables -t nat -A POSTROUTING -d 192.168.150.3 -p tcp --dport 22 -j SNAT --to 192.168.150.2
iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 23 -j DNAT --to 192.168.150.3:22
...

And on third route is defined like this:
Code:
ip route add default scope global nexthop via 192.168.150.1 dev eth0 nexthop via 192.168.150.2 dev eth0

It works, but the problem is that connections on third server are shown that their connected from 192.168.150.1 or 192.168.150.2. Are there is any way to keep original connection source address, when connecting to 192.168.150.3?

View 2 Replies View Related

Networking :: Multiple PXE Servers Same Network?

Jul 28, 2010

In my environment we are running DHCP on a Windows 2003 r2 server. This DHCP server also is used with Symantec's 3COM PXE for the desktops. So the desktop's can PXE boot into Symantec Ghost and re-image the PC's with a Ghost (GHO) file. This DHCP server is responsible for assigning IP addresses for all desktops on the network.

We also have several branch offices which this DHCP server provides IP addresses to. These branch offices are on a separate network so I believe this is possible. Each branch office is running a Linux server so I would like to use Clonezilla and allow users in these offices to PXE boot to the local Linux server to run Clonezilla and re-image their notebook/desktops with a specified image that is on the local Linux server in each office. My only concern is the use of the same DHCP server. Is this possible?

Another project I am working on is setting up LTSP with openSUSE in which I want to have about 10 or 15 diskless PCs boot up and retrieve the LTSP image but this would also use the same DHCP server and is on the same network as the regular desktops that use the Symantec 3COM PXE service so is this even possible? If not, any recommendation on how I could get it to work? Could proxyDHCP work or MAC filtering or even a seperate VLAN?

View 2 Replies View Related

Fedora Networking :: What Happens With Multiple Network Interfaces

Apr 30, 2009

What traffic goes where? Why? Any bandwidth advantage? What if one goes down?

View 4 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

Networking :: Specify A Network Adaptor For A Program To Use?

Jan 9, 2011

I have two nic's connect to different networks. I would like to use one to pick up my email and connect to skype and the other for general internet access. Is this possible?

View 2 Replies View Related

Fedora Networking :: DNS Not Working With Multiple Network Connections

Mar 5, 2010

I have a machine that I'm trying to setup as a reverse web proxy. It will have two NICs, eth0 will face the public network, and eth1 will face the "internal" network (connects to a switch that goes out to the other web servers that are statically assigned a private IP address).

When both interfaces are started, I can ping hosts on the 1.2.3.0 network and the 192.168.10.0 network without problem when doing so by IP, but if I try to run a ping or nslookup command with a DNS name, it does not work. I've tried commenting out my entries in /etc/resolv.conf and adding the DNS entries in the /etc/sysconfig/network-scripts/ifcfg-ethX files directly (DNS1=x.x.x.x and DNS2=x.x.x.x), but the results are the same.

View 2 Replies View Related

Ubuntu Networking :: Multiple Devices On Single Network

Jan 14, 2010

I've got a co-worker who is trying to connect multiple devices to his wireless router - Xbox, Wii, TV, Dishnetwork box, etc. Not all of the devices are wireless however. He's had several thoughts on how to get this done and I know very little about this kind of thing so I thought I'd ask some of you.

His first thought was to buy a multi port bridge, but he doesn't like any of the ones he's seen so far.The other thought was to connect all of the devices to a switch and then use a single bridge, but he isn't sure if this would work.

View 8 Replies View Related

Ubuntu Networking :: Multiple Network Connections On Different Networks?

Sep 20, 2010

I am total newby in Ubuntu 10.04. I have just installed it in my office where I have two networks card one connect to a router giving the internet access and the other connected to the windows based work network providing access to the work network sources. In XP everything works fine as I can keep both connections alive and have the results I want.

However although I don't know how to do it in Ubuntu 10.04. Till now I have setup the first connection directly to my router and I have internet access but I cannot set the other one. Another question is how I can force ubuntu to use the router connection as the default one when I log in.

View 5 Replies View Related

Ubuntu Networking :: Multiple Interfaces In Network Manager Have The Same Name

Apr 7, 2011

I have a problem where multiple interfaces in my network manager have the same name. This means that I am unable to have different settings for each interface. Here is my setup:

Ubuntu 10.04 LTS
uname -a: Linux muon 2.6.32-30-generic #59-Ubuntu SMP Tue Mar 1 21:30:21 UTC 2011 i686 GNU/Linux
Adapter 1: 02:00.0 Ethernet controller: Intel Corporation 82573E Gigabit Ethernet Controller (Copper) (rev 03)

Adapter 2: HTC Desire tethered via USB. When I start from scratch, with no remembered networks in the network manager, the Ethernet is shown as "Auto Ethernet". When I then connect the HTC Desire, the new network is shown in the network manager also as "Auto Ethernet". Previously, when I right clicked on the network manager and selected "Edit Connections", there were multiple "Auto Ethernet" entries under the wired tab.

Now (and I do not know what changed, sorry), I only see one entry. When I edit this entry (say, add a route), then the route is added for both network interfaces. This used to still work, so I was not worried about the name clash, but now it is causing problems so I need to have a different name for each network interface.

View 1 Replies View Related

Networking :: Virtual Network Adapter With Multiple Mac Address

Nov 10, 2010

Is it possible to create virtual network adapter on the same physical network adapter? or How to give or have multiple MAC Address to the same adpater? I m working on centos 5.3.

View 6 Replies View Related

Networking :: Gnome Network Manager - Multiple Proxies?

Feb 11, 2010

Is it possible to define multiple proxies in NM and switch between them?

View 1 Replies View Related

Networking :: Multiple Network Connections - Internal And Wireless

Dec 4, 2008

What I want is quite simple, I have my PC running Linux Mint 5 (Elyssa), and I would like to connect it to both an internal network, which has a file/print server, another machine and will soon host a small cluster. I also have a wireless router connected to the tinterweb.

The thing is using my ethernet I want to connect to the internal network whilst simultaneously using my wireless to deal with the internet, I want to keep the internal network off the net as it really doesn't need to be connected. I can connect to my internal quite happily and also my wireless but not both at once.

View 5 Replies View Related

General :: Creating Multiple Directories?

Mar 28, 2010

I need to create subdirectories in about 300 existing directories - the subdirectory will have the same name in all 300 existing directories. How do I do this using the mkdir command using a regular expression or globbing?

View 3 Replies View Related

Fedora Networking :: Set Up Multiple Virt Interfaces In Network-scripts?

May 15, 2009

if I want to do eth1, eth1:0, eth1:1 etc and automatically configure them at startup where do I put that in the network-scripts?

View 2 Replies View Related

Ubuntu Networking :: Multiple Network Interfaces (one Connected At A Time)?

Oct 15, 2010

configure a server with two network interfaces? This system is physically moved from one network to another every few days (different buildings but connected by a VPN). I'd like to be able to control the IP address of the system depending on which port I plug the network cable into with a static setting. Right now the system will connect to the local network, but any requests to go beyond the subnet get lost. The only way I can get the system to talk outside of its subnet is to comment out the second interface.

/etc/network/interfaces:

auto lo
iface lo inet loopback
auto eth0

[code]....

View 2 Replies View Related

Networking :: Configuring Multiple Separate LANs In Same Physical Network

Jun 27, 2010

For some simulation, I am trying to configure a setup of 3 ubuntu desktops (one of them with multiple network cards) to behave in the following way:

Each one of them should be a separate network not seeing the others (including multicast addresses) They need to have internet access through the machine with multiple network cards. So from the point of view of each machine they define a LAN in which it is the only device and have internet access through the gateway machine.

What do I need to do to configure these machines for the above setup?

View 6 Replies View Related

Networking :: How To Know Which Program Generates Network Traffic

Dec 8, 2008

Via a network traffic monitoring tool I see that my laptop is generating lots of outgoing (EDIT : incoming !!) network traffic. Although no download program is running or any other program of which I know that could be generating this much traffic. Something strange is going on and I need to know how I can find out which program( s ) are generating network traffic.

View 7 Replies View Related

Red Hat / Fedora :: Creating User In Multiple Groups?

Aug 7, 2009

I created a user and I want the particular user in multiple groups. How Should I and after creating the user,If I want to delete that user from a particular group.

View 1 Replies View Related

Software :: Creating PDF's From Multiple Files Of Different Formats

Oct 3, 2010

I have read alot about exporting or printing to PDF using open office. Haven t tried it but its pretty standard to be able to do that from a word processor so I'm not worried about it.here is an example of what I need to do. I just put together my wifes resume. I had the cover sheet in .doc I had the resume in .doc I had a pdf of some ground plans for large scale gardens she had done and I had a few new pix in jpeg.
I was able to go into Lightening PDF hit create new, pull all those files in, sort them in the order I needed and it created a single mutipage .pdf from those files.

Any luck on finding something like that for linux? That would be just about the last piece of software (If I can make wings work for me) that I need to start testing ubuntu as a primary operating system.

View 2 Replies View Related

Programming :: Creating Multiple Processes Using Fork

Oct 23, 2010

As an assignment i was doing a program to create two process using fork and pass messages between them using message queue.Did it worked well until my friend tried to copy it using scp.suddenly all hell broke loose as processes without ran syncronisation ie. in tech terms the process just wont wait wen a message queue is empty.it keeps on executing randomly.but after a reboot .. everything worked fine. until again i tried to do scp on my system on purpose. and again the program just went mad.

View 3 Replies View Related

Ubuntu Networking :: Change The Network Card Priority With Multiple Cards?

Sep 26, 2010

I've got two network card interfaces on my computer, one wireless and one wired. The wireless card is connected to the Internet and the wired is connected to the LAN. When only the wireless card is active, Internet works. As soon as i enable the second wired card, Internet stops working. And it seems like Ubuntu chooses the wired card for Internet as soon as it's enabled.

Are there any ways to solve this? So my Ubuntu box always chooses the wireless card for Internet traffic and let me use the wired device for LAN only?

View 1 Replies View Related







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