Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 22nd, 2002, 12:13 AM
pentium5 pentium5 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: entlegen
Posts: 442 pentium5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
why this rule ( IPCHAINS ) is error???

man ipchains and set up some rules for testing according to text.

Quote:

#!/bin/sh

clear
/sbin/ipchains -L
/sbin/ipchains -F
/sbin/ipchains -P forward REJECT

...
...
....

MY_IP = "192.168.1.199"

EXT="eth0"

/sbin/ipchains -A input -i eth0 -p tcp -d $MY_IP 80 -j DENY -l

/sbin/ipchains -A input -p tcp -s 0/0 -d eth0 23 -j ACCEPT # accept any IP to port 23

/sbin/ipchains -A input -p tcp -s 0/0 -d $EXT 23 -j DENY # deny any IP to port 23

error msg: ry `/sbin/ipchains -h' or '/sbin/ipchains --help' for more information and I do this according to text for experiment.


the last four stmts are all error while all other stmts are ok?

I watch carefully myself and see no error, correct me please!!!!!!
__________________
regards,

wish to use AT 89c51 single chip computer to do remote sensing and send the data back from woods to office via nokie 3330 and internet. HOW?
first I must revise C program thro' example, what's next?

Last edited by pentium5 : February 22nd, 2002 at 12:24 AM.

Reply With Quote
  #2  
Old February 22nd, 2002, 03:55 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,966 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 52 m 24 sec
Reputation Power: 189
Quote:
I watch carefully myself and see no error

you probably didnīt.
1. ipchains -F needs to know the chain to be flushed.

2. half of your message somehow got lost i cannot really understand what you did and what the error message was...

3. maybe you are using 2.4 kernel and not loading the ipchains module? (just a guess...)

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > why this rule ( IPCHAINS ) is error???

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap