* CAN´T DO PING TO MY ROUTER WITH MY NETWORK CLIENTS
@ 2003-09-01 16:47 Daniel Arjona
2003-09-04 3:27 ` cc
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Arjona @ 2003-09-01 16:47 UTC (permalink / raw)
To: netfilter
Hello cc:
I tried to do ping to my router and also i do the same to the ip address of
my dns servers and the both fails. But the server (with iptables, mail,
squis, and others) doit everytihng.
What is happennig? Maybe i have a setup error in my networks clients?
***********************
Hello:
I tried to configure an iptables firewall, but i can't. I need cofigure
this to use FTP, Kazaa, Internet, ICQ and access the IMAP server of Netscape
with my Netscape Client.
Observations:
I have LRH 8.0 and iptables is in the my unique server with squid, qmail and
others.
My router is directly connected to the NIC of the server.
When i try to connect to any FTP Server, i recieve this message "I can't
resolve DNS name"
I can't do ping to any IP Address
PD: Please see mi script and my outputs to the commands:
iptables -L -n
iptables -t nat -L
############################################################################
##
#!/bin/sh
# SCRIPT de IPTABLES
# Firewall entre red-local e internet con servicios abiertos de puerto
############################################################################
################################################ FLUSH de reglas
iptables -F
iptables -X
iptables -Z
iptables -t nat -F
####################################################### Cargo Variables
PRIVATE_NET=192.160.33.0/24
PRIVATE_NIC=eth1
PUBLIC_NIC=eth0
################################################### Establecemos politica
ACEPTAR por defecto
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -P PREROUTING ACCEPT
iptables -t nat -P POSTROUTING ACCEPT
####################################################### INPUTS 143=IMAP,
25=SMTP, 110=POP3
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -s $PRIVATE_NET -i $PRIVATE_NIC -j ACCEPT
iptables -A INPUT -s 0.0.0.0/0 -p tcp --dport 25 -j ACCEPT
iptables -A INPUT -s 0.0.0.0/0 -p tcp --dport 110 -j ACCEPT
###########################################################################
# FORWARDS
## FORWARD ACEPTED 80=HTTP, 143=IMAP, 53=DNS, 21=FTP, 1214=KAZAA
iptables -A FORWARD -s $PRIVATE_NET -i $PRIVATE_NIC -p tcp --dport 80 -j
ACCEPT
iptables -A FORWARD -s $PRIVATE_NET -i $PRIVATE_NIC -p tcp --dport 143 -j
ACCEPT
iptables -A FORWARD -s $PRIVATE_NET -i $PRIVATE_NIC -p tcp --dport 53 -j
ACCEPT
iptables -A FORWARD -s $PRIVATE_NET -i $PRIVATE_NIC -p udp --dport 53 -j
ACCEPT
iptables -A FORWARD -s $PRIVATE_NET -i $PRIVATE_NIC -p tcp --dport 21 -j
ACCEPT
iptables -A FORWARD -s $PRIVATE_NET -i $PRIVATE_NIC -p tcp --dport 1214 -j
ACCEPT
iptables -A FORWARD -s $PRIVATE_NET -i $PRIVATE_NIC -p tcp --dport 3128 -j
ACCEPT
## FORWARD DENIED
# iptables -A FORWARD -s $PRIVATE_NET -i $PRIVATE_NIC -j DROP
################################################################
ENMASCARAMIENTO
iptables -t nat -A POSTROUTING -s $PRIVATE_NET -o $PUBLIC_NIC -j MASQUERADE
################################################################ HABILITAR
FORWARDING
echo 1 > /proc/sys/net/ipv4/ip_forward
############################################################### CERRAR
ACCESO A INDESEADOS
# iptables -A INPUT -s 0.0.0.0/0 -i $PUBLIC_NIC -p tcp --dport 1:1024 -j
DROP
# iptables -A INPUT -s 0.0.0.0/0 -i $PUBLIC_NIC -p udp --dport 1:1024 -j
DROP
## DENIED WEBMIN PORT ACCESS
# iptables -A INPUT -s 0.0.0.0/0 -i $PUBLIC_NIC -p tcp --dport 10000 -j DROP
service iptables save
# Fin del script
*************************************
[root@transito root]# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 192.160.33.0/24 anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
******************************************
[root@transito root]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 192.160.33.0/24 0.0.0.0/0
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:110
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 192.160.33.0/24 0.0.0.0/0 tcp dpt:80
ACCEPT tcp -- 192.160.33.0/24 0.0.0.0/0 tcp dpt:143
ACCEPT tcp -- 192.160.33.0/24 0.0.0.0/0 tcp dpt:53
ACCEPT udp -- 192.160.33.0/24 0.0.0.0/0 udp dpt:53
ACCEPT tcp -- 192.160.33.0/24 0.0.0.0/0 tcp dpt:21
ACCEPT tcp -- 192.160.33.0/24 0.0.0.0/0 tcp dpt:1214
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Best regards,
DANIEL.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: CAN´T DO PING TO MY ROUTER WITH MY NETWORK CLIENTS
2003-09-01 16:47 CAN´T DO PING TO MY ROUTER WITH MY NETWORK CLIENTS Daniel Arjona
@ 2003-09-04 3:27 ` cc
2003-09-04 5:52 ` Eric Leblond
0 siblings, 1 reply; 3+ messages in thread
From: cc @ 2003-09-04 3:27 UTC (permalink / raw)
To: Netfilter
Daniel Arjona wrote:
One word of possible advice. The amount of
assistance/help you get is indirectly proportional
to the amount of caps in the subject matter.
(Of course, this only applies to the typical,
desperate posts, and not to the actual verbiage
that depends on caps, ie. DNAT, SNAT, POSTROUTING..
etc.)
Also, don't include your original message to
your current message. It confuses the reader
as to what your real problem is.
> I tried to do ping to my router and also i do the same to the ip address of
> my dns servers and the both fails. But the server (with iptables, mail,
> squis, and others) doit everytihng.
Perhaps if you could actually show us what your network
layout is like, someone here might be able to help. As it
stands, I'm a little confused as to which IP is which.
Basic information I suppose would help would be your
router's Internal IP, your dns server ip and whatever
IP you believe is pertinant to this issue.
Furthermore, have you set up your workstations to use
the server as the gateway(assuming of course, that _is_
your original intention).
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: CAN´T DO PING TO MY ROUTER WITH MY NETWORK CLIENTS
2003-09-04 3:27 ` cc
@ 2003-09-04 5:52 ` Eric Leblond
0 siblings, 0 replies; 3+ messages in thread
From: Eric Leblond @ 2003-09-04 5:52 UTC (permalink / raw)
To: Netfilter
[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]
Have you check that icmp_echo_ignore_all is not set in /proc/sys/net/ ?
Le jeu 04/09/2003 à 05:27, cc a écrit :
> Daniel Arjona wrote:
>
> One word of possible advice. The amount of
> assistance/help you get is indirectly proportional
> to the amount of caps in the subject matter.
> (Of course, this only applies to the typical,
> desperate posts, and not to the actual verbiage
> that depends on caps, ie. DNAT, SNAT, POSTROUTING..
> etc.)
>
> Also, don't include your original message to
> your current message. It confuses the reader
> as to what your real problem is.
>
> > I tried to do ping to my router and also i do the same to the ip address of
> > my dns servers and the both fails. But the server (with iptables, mail,
> > squis, and others) doit everytihng.
>
> Perhaps if you could actually show us what your network
> layout is like, someone here might be able to help. As it
> stands, I'm a little confused as to which IP is which.
> Basic information I suppose would help would be your
> router's Internal IP, your dns server ip and whatever
> IP you believe is pertinant to this issue.
>
> Furthermore, have you set up your workstations to use
> the server as the gateway(assuming of course, that _is_
> your original intention).
>
>
--
Eric Leblond
Nufw, Now User Filtering Works (http://www.nufw.org)
[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-09-04 5:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-01 16:47 CAN´T DO PING TO MY ROUTER WITH MY NETWORK CLIENTS Daniel Arjona
2003-09-04 3:27 ` cc
2003-09-04 5:52 ` Eric Leblond
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.