Linux Netfilter discussions
 help / color / mirror / Atom feed
* Newbie Question
@ 2002-10-22  2:47 William L. Childers
  0 siblings, 0 replies; 29+ messages in thread
From: William L. Childers @ 2002-10-22  2:47 UTC (permalink / raw)
  To: netfilter

All,

	I have a network with 4 computers behind the firewall.  Three of these
are workstations.  The firewall works fine for these.  Here is the fun
part.  

One of the computers is a server with the Windows 2000 Operating System
installed.  It is running IIS, and a mail server.  The SMTP portion of
IIS is configured to send email out on port 1125.  I have DNAT working
for the WEB server and SMTP.  There is, however, an issue with one of
the applications that is running on the web server.  It will not send
email out on port 1125.  The rules that I am trying to get to work are:
## Outgoing SNAT Port 1125 only
$IPTABLES -A PREROUTING -t nat -i $INTERNALIF -p tcp --sport 1125 -j
SNAT --to $MYADDR

$IPTABLES -A FORWARD -i $INTERNALIF -p tcp -d 192.168.0.4 --sport 1125
-j ACCEPT

$INTERNALIF is the Private Interface
$MYADDR is the Public IP Address

192.168.0.4 is the Private IP of the IIS Server 

Thank you in advance for any assistance that you may be able to provide.

Bill





^ permalink raw reply	[flat|nested] 29+ messages in thread
* CVS Respository failures
@ 2002-11-03 18:51 Noah
  2002-11-04  9:15 ` Newbie Question Louie
  0 siblings, 1 reply; 29+ messages in thread
From: Noah @ 2002-11-03 18:51 UTC (permalink / raw)
  To: netfilter

Just tried to d/l the latest ipfilter from CVS, and got the following
error:

sitz@uberwench:~/src/tmp$ cvs -d
:pserver:cvs@pserver.netfilter.org:/cvspublic co netfilter/userspace
can't create temporary directory /tmp/cvs-serv32524
No space left on device

I'm thinking that since there's space on /my/ system, that the cvs server
is having space issues? =)

--n



^ permalink raw reply	[flat|nested] 29+ messages in thread
* Newbie question
@ 2002-12-08 23:37 Glen Spidal
  2002-12-10 13:09 ` Bart
  0 siblings, 1 reply; 29+ messages in thread
From: Glen Spidal @ 2002-12-08 23:37 UTC (permalink / raw)
  To: Net Filter


[-- Attachment #1.1: Type: text/plain, Size: 210 bytes --]

What IPTables commands do I need to issue in a script to allow port 25 and
110 (email) to work.  See attached PDF file.

Glen Spidal
Hillsboro Oregon USA
PH: 503-681-9786  FX: 503-615-2936
www.cybercorpinc.com

[-- Attachment #1.2: Type: text/html, Size: 926 bytes --]

[-- Attachment #2: fhlsnet.pdf --]
[-- Type: application/pdf, Size: 19864 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread
[parent not found: <20030120105301.22841.47459.Mailman@kashyyyk>]
* Newbie question
@ 2003-02-16  7:04 Shankar; Hari
  2003-02-16  7:57 ` Joel Newkirk
  0 siblings, 1 reply; 29+ messages in thread
From: Shankar; Hari @ 2003-02-16  7:04 UTC (permalink / raw)
  To: netfilter


Hello,

I'm trying to use IPTables in User Mode Linux. I've configured UML to
use IPTables replacing IPChains. But when I start up UML, and try to play
around with IPTables, I get the message,

iptables v1.2.4: can't initialize iptables table `filter': Table does not
exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

The UML version that I'm running is 2.4.19.

What could I be doing wrong? I'd very much appreciate any help!

Thanks,
Hari




^ permalink raw reply	[flat|nested] 29+ messages in thread
* Newbie Question
@ 2003-02-24 16:23 Jeffrey Corbit
  2003-02-24 16:50 ` Aldo S. Lagana
  0 siblings, 1 reply; 29+ messages in thread
From: Jeffrey Corbit @ 2003-02-24 16:23 UTC (permalink / raw)
  To: netfilter

I'm running POPTOP on a linux 2.4.18 kernel.  Have been having some
connection problems and questions to the poptop mailing list have suggested
that I need to install the Netfilter Helper PPTP files.  I have successfully
downloaded these files to my linux server and they now reside in
/root/netfilter-extensions... folder.  My question is what do I do with them
now.  I can't find any documentation a to how to apply these files to my
current configuration.

Thanks for any help you can give!

Jeff



^ permalink raw reply	[flat|nested] 29+ messages in thread
* newbie question
@ 2003-03-24 15:54 Scott Melnyk
  2003-03-24 16:27 ` Joel Newkirk
  0 siblings, 1 reply; 29+ messages in thread
From: Scott Melnyk @ 2003-03-24 15:54 UTC (permalink / raw)
  To: netfilter

Hello, I hope this is not to simple to post. I have not quite got
IPTABLEs use down.

I am looking at setting up local firewalls on  a cluster of machines
(almost 100 linux boxes running RH 7.3 and 8.0).  The login nodes for
the cluster have extensive hardware based firewalling rules.  

On the rest of the cluster I would like to set IPTABLEs to accept
everything within the subnet and drop the anything from and outside
address.

My thought for setting the rules on each machine is by pushing out and
running a bash script.
Is it possible to simply set up a firewall with something as simple as:


#!/bin/bash
#

service iptables stop

iptables -F

iptables -A INPUT -m limit -j LOG
iptables -A OUTPUT -m limit -j LOG


iptables -A INPUT -s 130.xxx.xxx.128/25  ACCEPT
#rule here to drop all non 130.xxx.xxx.128/25

iptables -P FORWARD DROP
iptables -P INPUT DROP

service iptables save


We have a subnet of 130.xxx.xxx.128/255.255.255.128  
How can I define a mandatory drop of everything not in
130.xxx.xxx.128/255.255.255.128? 

Finally what risks am I taking by doing this?  Other than if someone
hacks into one of the login nodes, I realize this would then give them
access to the rest of the cluster.

All thoughts, advice and suggestions very welcome.  Thank you in
advance.

Sincerely,
Scott Melnyk



^ permalink raw reply	[flat|nested] 29+ messages in thread
* Newbie Question...
@ 2003-03-26 17:37 Carlos Cajina
  2003-03-26 18:53 ` Joel Newkirk
  0 siblings, 1 reply; 29+ messages in thread
From: Carlos Cajina @ 2003-03-26 17:37 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

Hi, I'm Carlos from Nicaragua but currently living in Mexico... I just signed up to this list and already have one question in mind: Is it possible to specify a particular IP address range when creating filtering rules? If so... where can I find the info that talks about it?

Best regards!!!!

[-- Attachment #2: Type: text/html, Size: 711 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread
[parent not found: <385FE68A-FB2E-11D7-B96A-000393B2CBCE@apple.com>]
* newbie question
@ 2004-04-08 11:57 M. Ahmad Ijaz
  2004-04-08 12:02 ` Antony Stone
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: M. Ahmad Ijaz @ 2004-04-08 11:57 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]

hi,

I just wanna know few things , i have installed red hat 9, iptable is installed.

Now the thing is, i didnt know at first that i have to load the modules, i was getting the message

iptables: No chain/target/match by that name

so after couple of searches i did find some help and i manage to apply few commands i.e.

modprobe ip_tables
modprobe ip_conntrack
modprobe iptable_nat
modprobe ip_conntrack_ftp
modprobe ip_nat_ftp

iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
iptables -A INPUT -p icmp --icmp-type 8 -j DROP 


all the above commands are accepted at command prompt, but when i try to use this command

iptables -A PREROUTING -s xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 where xxx is any IP and yyy is the subnet mask, it returns me the same message i.e. 
iptables: No chain/target/match by that name

So it also give the same message with POSTROUTING.


also i dont wana load the modules and the commands each time the system starts, so when i type the commands i used iptables-save command to save tat, also is there ne possibility where i can store the command and execute when system startsup

[-- Attachment #2: Type: text/html, Size: 1962 bytes --]

^ permalink raw reply	[flat|nested] 29+ messages in thread
* Newbie Question
@ 2004-06-08  4:16 mafioso1823
  2004-06-08 11:09 ` John A. Sullivan III
  0 siblings, 1 reply; 29+ messages in thread
From: mafioso1823 @ 2004-06-08  4:16 UTC (permalink / raw)
  To: netfilter

I am trying to use this piece of code that i found in my rc.firewall script
but it doesn't seem to want to take it can anyone tell me why or how i can
get this to work?

#The Mangle portion of the ruleset. Here is where unwanted packet types get
dropped.
#This helps in making port scans against your server a bit more time
consuming and difficult, but not impossible.
*mangle
:PREROUTING ACCEPT [444:43563]
:INPUT ACCEPT [444:43563]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [402:144198]
:POSTROUTING ACCEPT [402:144198]
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG
FIN,PSH,URG -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG
FIN,PSH,URG -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG
FIN,PSH,URG -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG
FIN,PSH,URG -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags SYN,RST SYN,RST -j DROP
-A PREROUTING -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP
COMMIT



^ permalink raw reply	[flat|nested] 29+ messages in thread
* newbie question
@ 2009-07-30 18:03 Gergely Buday
  0 siblings, 0 replies; 29+ messages in thread
From: Gergely Buday @ 2009-07-30 18:03 UTC (permalink / raw)
  To: netfilter

Dear All,

I have a basic question: I need to enable a cvs server to telnet back
to port 2401 as described at

http://forums.fedoraforum.org/archive/index.php/t-37342.html

---
> $ cvs login
> Logging in to :pserver:rob@<hostname>:2401/home/repository
> CVS password:
> cvs [login aborted]: connect to <hostname>(<IP address>):2401
> failed: No route to host
>
> i've verified that the network is up, that i can ssh into the
> server, that xinetd is running, that cvspserver is on, that the
> CVS repo is unchanged from what it was before the re-install,
> etc. i'm not sure what else i might be checking.

You should be able to telnet into your server from a remote system
on port 2401 to your pserver box. If not, perhaps you haven't
opened up your iptables firewall for access to this port?
---

how can I do that with iptables temporarily?

- Gergely

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2009-07-30 18:03 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-22  2:47 Newbie Question William L. Childers
  -- strict thread matches above, loose matches on Subject: below --
2002-11-03 18:51 CVS Respository failures Noah
2002-11-04  9:15 ` Newbie Question Louie
2002-12-08 23:37 Newbie question Glen Spidal
2002-12-10 13:09 ` Bart
     [not found] <20030120105301.22841.47459.Mailman@kashyyyk>
2003-01-20 15:58 ` newbie question regina
2003-01-20 19:02   ` Maciej Soltysiak
2003-02-16  7:04 Newbie question Shankar; Hari
2003-02-16  7:57 ` Joel Newkirk
2003-02-16 22:50   ` Shankar; Hari
2003-02-24 16:23 Newbie Question Jeffrey Corbit
2003-02-24 16:50 ` Aldo S. Lagana
2003-03-24 15:54 newbie question Scott Melnyk
2003-03-24 16:27 ` Joel Newkirk
2003-03-26 17:37 Newbie Question Carlos Cajina
2003-03-26 18:53 ` Joel Newkirk
     [not found] <385FE68A-FB2E-11D7-B96A-000393B2CBCE@apple.com>
2003-10-10 14:43 ` Newbie question Arvanitis Kostas
2004-04-08 11:57 newbie question M. Ahmad Ijaz
2004-04-08 12:02 ` Antony Stone
2004-04-08 12:32   ` M. Ahmad Ijaz
2004-04-08 12:41     ` Antony Stone
2004-04-08 12:43     ` ro0ot
2004-04-08 12:32   ` Jeffrey Laramie
2004-04-08 12:47     ` Antony Stone
2004-04-08 12:09 ` Frank Gruellich
2004-04-09  4:33   ` M. Ahmad Ijaz
2004-04-08 16:26 ` Alexis
2004-06-08  4:16 Newbie Question mafioso1823
2004-06-08 11:09 ` John A. Sullivan III
2009-07-30 18:03 newbie question Gergely Buday

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox