Networking :: Getting Source Ip Address From Ip Header?

Sep 15, 2010

I have written C code to read data from the network using raw socket. I am printing out source/destination ip addresses and ports for packets I am interested in. For most part it decodes Source IP address correctly but sometimes the last part of the address is not correct. The destination ip address is always decoded correctly.

Here is the snippet of code:

Code:
struct sockaddr_in SenderAddr,Source,Dest;
socklen_t SenderLen = sizeof(SenderAddr);
struct iphdr *IpHdr;
struct udphdr *UdpHdr;

[Code]......

View 4 Replies


ADVERTISEMENT

Networking :: Specifying The Source Address For SMB Mounts

Jan 11, 2010

Is there way that you can specify the source address to use when mounting a remote share? I'm trying to test an application, and I need to be able to script a job that connects to a remote SMB server using different local IP addresses on the system. It would have 1 main address, and several aliases in the same subnet. The script would mount the remote server, transfer a file, then unmount, change IP, and repeat.

View 2 Replies View Related

Networking :: Dhcpd Using Wrong Source IP Address?

Feb 16, 2011

I'm trying to get dhcpd to use a specific IP address as the source address for responses it uses an IP address for. I coded "local-address 172.30.0.4" in the config file. For some responses it uses this address. For some other responses it does not. In those cases it uses the IP address that is the first on the interface. Is there another configuration I should be using, instead?

View 2 Replies View Related

Networking :: Stop IPTables To Resolve Source Address?

Oct 25, 2010

Here is a glimpse of my IPTABLES
http://pastebin.com/WvHAC46A
I see in the column of sources the addresses being resolved to domain names is there a way I can stop this?

View 4 Replies View Related

CentOS 5 Server :: Centos And Xen: Lan Error - Vif0.0: Received Packet With Own Address The Source Address

Jun 18, 2010

I installed the Centos 5.5 and after the Xen. After I put a virtual machine named VM01.Initially it worked properly, I tried everything and it worked.When rebooted, I had problems with the network.I have two network cards eth0 and eth1, but eth1 does not have any ip and I use only eth0.The error that appears is:

vif0.0: received packet with own address the source address

View 3 Replies View Related

Server :: Sendmail Error - Rejected After DATA: Could Not Verify "From:" Header Address"

Jul 20, 2010

I have spent three days on this and am at my end so help would be greatly appreciated. I have a server running CentOS 5.5 and Sendmail 8.13.8. All works fine except for emails from Logwatch. I see this in the maillog:

Jul 20 07:49:24 ifsboss sendmail[1027]: o6K5aIc0000515: to=system@soswebs.co.za, ctladdr=<root@ifsboss.ifsdbn.co.za> (0/0), delay=00:13:06, xdelay=00:00:45, mailer=relay, pri=210540, relay=smtp.isdsl.net. [196.26.208.197], dsn=4.0.0, stat=Deferred: 451-Rejected after DATA: could not verify "From:" header address

No matter what i have done It still fails on this. To list what I have done is plenty so I thought I'd poll you experts for possible past experience that could either confirm I am on the right track, or point me to it. If I try force the mail that is stalled in the mailq I see this:

Running /var/spool/mqueue/o6I22Exm009672 (sequence 1 of 1)
<gary@soswebs.co.za>,system@soswebs.co.za... Connecting to smtp.isdsl.net. via relay...
220 smtp01.isdsl.net ESMTP Exim 4.69 Tue, 20 Jul 2010 07:53:28 +0200
>>> EHLO ifsboss.ifsdbn.co.za

[code]....

View 7 Replies View Related

Programming :: Extract Source Email Address - Awk?

Dec 17, 2010

I have a small bash/awk program that extracts the date/time/size of thousands of email headers. I'm trying to also extract the last "Received from:" string from these email headers which will give me the senders email server. on extracting the last occurrence of this string, and printing the information after it?

View 3 Replies View Related

OpenSUSE Network :: Routing With Alias Source Address

Jan 20, 2010

i have a big problem y have to make an alias for the eth0 interface, i made it with yast and my alias was eth0:1, first, if i try to shutdown the interface i cant it give an error and tell me that the interface dont exist and the second threat is if i can put a default gateway for this alias something like this in other distributions:

route add 128.26.6.11 gw 192.168.28.201 dev eth0:1

View 3 Replies View Related

General :: Get Socket.h Header File / Copy Pasting This Header File In 'incl' Directory Allow To Use It In The Program?

Apr 22, 2011

where can i get socket.h header file? will copy pasting this header file in 'incl' directory allow me to use it in the my program?

View 1 Replies View Related

Security :: Accept Different Source Network Address In Iptable Input Chain?

May 27, 2010

Quote:

-A RH-Firewall-1-INPUT -s 10.12.0.0/16 -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

Ex- 10.12.0.0/16, 172.150.0.0/16, 192.168.20.0/24

How can we add multiple sources network address in the above INPUT chain?

View 1 Replies View Related

Ubuntu Networking :: Port Forwarding From Public Address To Private Address?

Feb 24, 2010

Currently my OS is Ubuntu 9.04 Jaunty Jackalope Desktop OS and my web server is Apache2. I have a public address 60.x.y.z and my pc local address is 10.x.y.z. I have a web app in my Apache2 which currently run in localhost(10.x.y.z).

I would like to enable the web app so that it could be browse from outside. I know there maybe some port forwarding process and some commands involved in order to do that. But I have no idea on the steps to do that.

View 5 Replies View Related

Networking :: Error Str2addr:Address 35 Outside Range Of Address Field Length 1?

May 12, 2011

I am working on implementing a protocol on NS2.34 .I really need help to solve this problem . Actually , I don't now whether the problem is generated by the tcl code or the c++ code when I run the simulation, I get this result :

Code:
num_nodes is set 64
INITIALIZE THE LIST xListHead
34
45
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
code....

View 1 Replies View Related

Networking :: Program To Assign Globa LIPv6 Address And Bind() To The Previously Assigned Address?

Apr 24, 2010

Consider the following program:

Code:
#include <stdio.h>
#include <stdint.h>

[code]...

View 2 Replies View Related

Ubuntu Networking :: Static IP Address And The Install Configures For A DHCP Configured Address - Network Not Starting

Dec 16, 2010

Version 10.04 LTS. Installed desktop version and network worked but I needed a static IP address and the install configures for a DHCP configured address. I tried changing to static address using the System->Preferences->Network Connections application but was unable to get the system to come up with the network up.

So I manually modified the /etc/network/interfaces and the /etc/resolv.conf files. I restart the system but when I do an ifconfig, I don't see a configured IP address on eth0 (only the loopback address). If I run /sbin/ifup eth0 everything then works fine and ifconfig shows the correct address bound to eth0.

My files are as follows:

View 2 Replies View Related

Ubuntu Networking :: IP Address Set To Manual But Still Queries DHCP For Address

Mar 12, 2011

I'm running Ubuntu 10.10 and I'm having problems trying to assign it a static IP address. No matter what I put in the Preferences->Networking area (identifying the interface as Manual)... it still will query DHCP for an address if I run the dhclient command. I'm using to using ubuntu server where I just set the IP in the interfaces config file.

View 1 Replies View Related

Networking :: Dynamic IP Address With PTR Record Versus Fixed IP Address Without?

May 7, 2010

I am running my own Postfix mail server. Some time ago I noticed that most email was rejected because of the server's dynamic IP address. So I got a fixed IP address. However then I noticed that some mails got rejected due to failing the reverse DNS check. So my ISP told me to get a range of IP addresses and they could then create a PTR record for one of those addresses. That is now running but it turns out that the IP address used for the PTR record is a ... dynamic IP address. So Spamhaus PBL rejects my emails again.

View 1 Replies View Related

Ubuntu :: Open Office - OO Doesn't Show The 'ADDRESS DATA SOURCE' At The Bottom Of The List

Dec 12, 2010

I am using Open office 3.2 with Ubuntu 10.10. Trying to get it set up to print out the Christmas address labels. To register the data source its 'FILE'> 'WIZARDS' then' ADDRESS DATA SOURCE.' But OO doesn't show the 'ADDRESS DATA SOURCE' at the bottom of the list, so I am stuck. Apart from that, I have had no problems with ubuntu and its working well.

View 1 Replies View Related

Networking :: Bind External IP Address To Internal IP Address?

Jun 7, 2009

I have a few external IP's assigned to me by my ISP. I have IPcop as my router/firewall. I am wondering how to bind 1 of my external ip's to my internal ip address. So I do not have to port forward, etc. For Example, 77.77.77.77 to 192.168.1.123 and on the server it see's the external IP address.

View 2 Replies View Related

Networking :: No /usr/include/usb.h Header File?

Dec 16, 2010

I was trying to install usb-modeswitch edora-14 (64 bitt saidCode:usb_modeswitch.c:56:17: fatal errr: usb.h: No such file or directoryWhen I tried to install libusb, it said that it is already installed and is the latest version. But, it still doesn't show usb.h in /usr/include directory.What shall I do to make usb-modeswitch?

View 4 Replies View Related

Ubuntu Networking :: Obtaining Ip Address From Mac Address?

Oct 6, 2010

In my job I use some ethernet embedded devices. They take an ip address from dhcp server or auto ip. I only know mac address.How can I obtain ip from mac address? In other words I need a rarp packet generator.

View 6 Replies View Related

Networking :: (98)Address Already In Use: Make_sock: Could Not Bind To Address [::]:443?

Oct 28, 2010

I dont know for what reason, since 2 days, I started having this message whenever I try to start httpd.I commented "Listen 443", restarted httpd started correctly. I needed to comment "listen 443" in order to be able to start httpdWhat is strange is when I do

Code:
telnet mylinux 443
it responds

[code]...

View 9 Replies View Related

Networking :: Assign A Address To Ethernet Address?

May 29, 2011

how to assign a address to my ethernet card all the options available

View 1 Replies View Related

Networking :: Softflowd Configure Error - No BPF Header

Apr 17, 2011

Give me error when I install softflowd
the problem :
#./configure
give me :
configure error : no BPF header not found

View 4 Replies View Related

Networking :: Renew Ip-address With Mac-address?

Jan 18, 2010

I have a dedicated control computer that can only be accessed with web-browser (with its ip-address). My DHCP-server gives a static ip-address to the control computer (base on its mac-address). Somehow and after some time the control computer looses its ip-address (can't ping to it any more) ... and then I have to reset the control computer to get it to pick up the ip-address ... this is not a good solution since the control computer is not nearby. is there a way to force the control computer to renew its ip-address based on its mac-address

View 1 Replies View Related

Networking :: Trace An IP Address To A MAC Address?

Apr 18, 2011

My security software has picked up multiple port scanning detections on my router/network and only the IP addresses are available. Is it possible to find out what the remote mac address is to see if the IP source has been spoofed? I've got a couple of different IP sources which were found scanning my ports.

I don't know if my IP and the remote IP address are on the same network or subnet for that matter which is the reason for my wanting to know what the mac address is to find out if its coming from the same remote machine.

View 8 Replies View Related

Networking :: Get The Mac Address From Given Ip Address?

Oct 1, 2010

how to get the mac address from given ip address

View 3 Replies View Related

Networking :: Networking Routing \ Use The Terminal To Assign Server Eth0 A Proper IP Address?

Jun 8, 2010

i know exactly what i need to do, im just not familiar enough with command line to do it properly.i have 7 computers.the first 4 are connected to a router via wireless at one end of the house. of the last 3 only 1 will be able to access the router via wireless, so it needs to share it's one wireless connection via ethernet. this computer i'm going to call 'server'server will have two IP'swlan0 192.168.1.6 this connects to the router that has internet access.eth0 i intend to have the following settingsip:192.168.0.1sub: 255.255.0eth0 will connect to a second router, where the cat5 cable goes from the server, into the internet port of the router where i will define the router's static IP:IP: 192.168.0.100sub: 255.255.255.0gateway 192.168.0.1i have then set the router IP for LAN handling as 192.168.27.1 and all ethernet connections will have a 192.168.27.x IP.

so i need to know how to, without a gui application, use the terminal to assign server eth0 a proper IP address, and tell the server to take the connection it has and share it through eth0 to supply internet for the last 2 computers via ethernet.i had it set up in this way with a windows machine being the one that had the wifi access, but i'd rather have it setup for the ubuntu server to do this task. security is imperative for these 3 remaining machines, so just getting 2 more wifi adapters for a connection to the initial router isn't an option.the 2 that connect to server do so through SSH and though server IS connected via wireless it only makes outward connections through

View 1 Replies View Related

Ubuntu Networking :: Networking Involving Multiple IP Address Types - 192 And 172?

Jul 6, 2011

I have one router, a linksys. It allows wireless and wired connections, as is normal. I have two XP machinesby wire to the router and three linux machines connected wirelessly. The XP machines both have IP addresses beginning with 192.168. while my three linux machines have IP addresses that all begin with 172. None of the machines is connected with a static IP address. All are automatic DHCP.I am told that the above scenario makes no sense. However, such is what I have so, I trust, the theory and the fact do not gel. I would not care except that I cannot see - using the nautilus network servers program, all of the XP computers with some of my linux boxes.

View 9 Replies View Related

Ubuntu :: Open Source Virtual Machine - Study The Source In Order To Create My Own?

Jun 28, 2011

Is there any open source virtual machine so i can study the source in order to create my own? i'm gonna write my own, so it doesNT matter if license does not allow further development of the code.

View 1 Replies View Related

Ubuntu :: Source Code Of The Krnel From The Kernel.org - Source Trees Organization

Apr 11, 2011

i am already a little bit familiar with linux and now i want to know better the linux OS. i have downloaded the source code of the krnel from the kernel.org and i dont understand the linux source trees organization, so can somebody do me a favor and give me a link to some internet page (or at least a book) that explains that?? i have searched in the internet with the tag:::linux source trees organization and i have not found nothing interesting

View 1 Replies View Related







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