LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2003, 03:39 AM   #1
TimeFade
LQ Newbie
 
Registered: Aug 2003
Location: New Hampshire
Distribution: LFS 6.1 & Gentoo
Posts: 13

Rep: Reputation: 0
How to change Packet to look like a Windows packet?


I am having a problem connecting to the world. I have a Windows XP Home on one Partition and Mandrake Linux 9.1 on the other. Windows gets on fine but Linux goes no where. I have been thru all my settings and finally realized that nothing was wrong. I have been through almost all of my howto's and all online documentation. I now have a static ip and the correct driver. I realized though I can't Ping anything else on the network I can port scan using nmap with -P0 (no ping) option. As such I can see my local dns servers and the gateway.

I asked many of the local network admins and they had no idea why this was. After a few weeks I finally found one with an smart idea as to why this may be. The firewalls on the network might be configured as to filter out linux packets for secure reasons.

As we cannot change our firewall without facing the wrath of the government (I am a soldier out in middle of no where with at least 3 firewalls between me and the world) I have been trying to find a way to edit the outgoing packets from my computer so the read to the filters as a windows box .... little luck so far ... any suggestions ? or does this sound like a dead end?
 
Old 08-26-2003, 04:00 AM   #2
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Hey dood, good work out there btw...

You're sure about a firewall filtering linux packets??
I'm a network admin by trade, and i've allways assumed a packet is a packet.. it's just tcp and is'nt that a standard??

I could be wrong, and i'm not basing my answer on proof, but i would have thought a packet is a packet. Just data, unless there's a header that identify's the OS it's coming from.. Look into editing packet headers maybee??

Hope that made some sence, as i notice noone else gave an opinion yet.

Ade
 
Old 08-26-2003, 04:13 AM   #3
TimeFade
LQ Newbie
 
Registered: Aug 2003
Location: New Hampshire
Distribution: LFS 6.1 & Gentoo
Posts: 13

Original Poster
Rep: Reputation: 0
I am pretty sure not 100%, but pretty.

If I remember right a packet is made of at least 2 layers the IP packet layer, which encloses the TCP packet layer. Then the data is enclosed in the tcp layer.

There is a couple lines in the header dealing with destination and source, but I don't remember what else.

I don't know if a editor will work have't found any yet, any suggestions?

And thanks for the support. Got any ICE you can send my way??
 
Old 08-27-2003, 01:08 PM   #4
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Yeah you may be right... Dunno about the packet editing though, never got that brave lol.
 
Old 08-27-2003, 01:14 PM   #5
Rumblefish
Member
 
Registered: Jun 2003
Location: Delaware
Distribution: Redhat 7.0, 7.2, 8.0, 9.0, FreeBSD 4.6.2
Posts: 51

Rep: Reputation: 15
Install Ethereal and sniff the packets going out on a Linux box, and do the same on a Windows box. Try this using a standard ping. The packets should have an identical format (not necessarily identical contents because of machine identification). A packet is a packet is a packet, because every TCP/IP-capable operating system needs to speak a universal language. For more information, try looking up details on Transmission Control Protocol/Internet Protocol at http://www.faqs.org/

Last edited by Rumblefish; 08-27-2003 at 01:16 PM.
 
Old 08-27-2003, 01:29 PM   #6
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
Hey there Soldier,
Rumblefish is exactly right. There are certian "fingerprinting" methods of finding out what OS you're using over a network, but most firewalls aren't going to filter this out. It's more likely that your problem lies elsewhere.

'Packets' traverse 7 layers in the OSI/ISO Model. Physical, Data Link, Network, Transport, Session, Presentation, and Application layers. There's no way to really "edit" packets in real time, as they're shooting across your network quite fast, and sometimes in fragments. You can do some pretty neat stuff with iptables' packet mangling though.

How far can you get your packets to go before they're dropped?

Also, there are DoD firewalls that drop icmps, so don't base this on icmp alone.

BTW Windows XP and Linux aren't authorized workstation OSs on the NIPRNet, if that's the network you're on. (Definately not authorized on "other"Net's)

I'm also deployed out to a 'desert region', so I feel your pain.
 
Old 08-27-2003, 05:41 PM   #7
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Rep: Reputation: Disabled
I've been trying to learn something about designing & testing tcp/ip networks recently - i'm no expert yet but it seems to me that your problem is associated *not* with the filtering of packets from your linux box, but may have more to do with getting an ip address on booting under linux.

If your network has a cable modem, windows will get a dhcp ip address for a period. If this is the case, static ip address on linux boot will not allow you to access the net. You will have to set linux to boot the network interface with dhcp enabled.

im not sure what you would have to do if your using a normal modem.

The reason your linux machine can see everything on your network is probably because they are on the same ethernet segment (the wires plugged into a single shared hub).
 
Old 08-27-2003, 11:42 PM   #8
Rumblefish
Member
 
Registered: Jun 2003
Location: Delaware
Distribution: Redhat 7.0, 7.2, 8.0, 9.0, FreeBSD 4.6.2
Posts: 51

Rep: Reputation: 15
If you're on cable or DSL chances are you have one IP address. You need a broadband router or a really rigged up routing table on your gateway box to get broadband to route properly. Remember also that your router setup has to match your system setup (if the router is set for DHCP, the system must be; if the router is set to expect a static IP, the system must have the corect IP and must be set up with the right routing table as well).
 
Old 08-28-2003, 12:03 AM   #9
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
ok, ping requests do not contain OS information to my knowledge. if u cant ping, from one OS but can from another, you have other issues, not a router blocking Linux requests.
 
Old 08-28-2003, 12:09 AM   #10
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
to add to what i just said and to build off what others have said:

routers only deal in TCP/IP or TCP/UDP (and other standard protocol stuff) that contain no information on the OS it came from. OS information would be deep down into the data layer (like a server getting the browser information from a client). For a router to figure out what OS a packet came from would involve 2 much overhead for that router to be a very good router. Ethernet frames (to add to the list) also do not contain OS info.
 
Old 08-28-2003, 08:08 AM   #11
Blindsight
Member
 
Registered: Mar 2003
Distribution: Slackware
Posts: 234

Rep: Reputation: 30
Quote:
ok, ping requests do not contain OS information to my knowledge.
that's not entirely true. When you send a ping from windows, it's puts incrementing char codes in the data field (ex: abcde...) Linux does it a different way, other OS's have other methods. This is one way to "Fingerprint" an operating system based on the way it formulates packets. NMap has a good document on it's OS Fingerprinting method, if you're interested in reading more.

It isn't a cable modem he's dealing with, but the network probably does use DHCP, as it's a DoD standard for non-secure networks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 12:06 PM
how do i read the data in the packet that i have captured after packet capture? gajaykrishnan Programming 23 04-19-2006 05:09 AM
packet fragmentation in packet forwarding code cranium2004 Linux - Networking 0 05-16-2005 04:05 AM
Packet Types on Linux as well as Windows cranium2004 Linux - Networking 1 01-06-2005 07:31 PM
Suggestions for packet sniffer w/ packet viewing? TruckStuff Linux - Networking 5 05-31-2002 09:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration