Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Linux Support Linux - Operating Systems and Applications Support

Reply
 
LinkBack Thread Tools
Old 01-15-2005, 02:10 PM   #1 (permalink)
Registered User
 
XunilNewb's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 30
OS: Fedora Core 1, Win XP


Twisted opening ports 67:68 to UDP traffic [4 dhcp]

I'm new to Linux and even newer to networking with Linux. I’ve configured my dhcpd.conf so that it should work but I’m struggling to allow dhcp traffic through udp ports 67 & 68.
I’m using Fedora Core 1 and have tried the following two strings of commands;

#iptables -I INPUT –I eth0 –p udp –sport 67:68 –dport 67:68 –j ACCEPT

[this command resulted in a message saying you can’t use –I with -I]

#iptables -I INPUT –I $LAN_INTERFACE –p udp –dport 67:68 –sport \ 67:68 –j ACCEPT

[this command resulted in $:WARNING: weird character in interface ‘-p’ no aliases :, ! or *]

I’m very new to peeing tables so I have to take what people have suggested to me at face value, it really shouldn’t be difficult to allow udp traffic on the ports that dhcp uses though – I’m close I can smell it, wait, that’s just me.
__________________
Don't worry Scoob, I don't think Thelma literally meant IPtables!
XunilNewb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 01-15-2005, 02:18 PM   #2 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Chicago burbs
Posts: 2,194
OS: Gentoo Linux, CentOS, OS X

My System

Would you rather be using IPChains?

Try this rule instead:

iptables -A INPUT -p udp –sport 67 --dport 67

I'm not too familiar with IPTables, so I'm just going based on what I'm finding around the net.
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-15-2005, 02:51 PM   #3 (permalink)
Registered User
 
XunilNewb's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 30
OS: Fedora Core 1, Win XP


That looks more like it, Core commands seem a lot more streamlined than other distro's, I'll try it ty again! (btw you'll probably have guessed that my "is your son a hacker?" post is a joke. I ripped it from some other site where hordes took it sooo seriously lmao. Wait, this jokes prolly a bit long in the tooth now aint it? Never mind, it's ammusement for those who haven't yet been enlightened, lol.



P.S. peeing chains might hurt but DUDE a TABLE! lol

hmn, tried it, that one spat out bad argument '67'. I'll go through -h and man and try and work it out, if I do I'll post it
__________________
Don't worry Scoob, I don't think Thelma literally meant IPtables!

Last edited by XunilNewb; 01-15-2005 at 02:30 PM.
XunilNewb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-17-2005, 11:02 AM   #4 (permalink)
Manager, Alternative Comp
 
Skie's Avatar
 
Join Date: Mar 2003
Location: Chicago burbs
Posts: 2,194
OS: Gentoo Linux, CentOS, OS X

My System

Here are some actual IPTable rules that I've used (given to me by someone else). The IP address is changed, but you should get the idea. These are for tcp, but udp shouldn't be much different.

Quote:
iptables -I INPUT 1 -p tcp -s 1.2.3.4 -j ACCEPT
iptables -I OUTPUT 1 -p tcp -d 1.2.3.4 -j ACCEPT
iptables -I INPUT 2 -p tcp --dport 1040 -j ACCEPT
iptables -I INPUT 3 -p tcp --dport 1248 -j ACCEPT
iptables -I OUTPUT 2 -p tcp --sport 1040 -j ACCEPT
iptables -I OUTPUT 3 -p tcp --sport 1248 -j ACCEPT
__________________
Skie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 07:21 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85