Here are the logs:
ID=56596 PROTO=ICMP TYPE=3 CODE=1 [SRC=""
DST=172.16.250.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=15353 DF PROTO=TCP SPT=1031
DPT=8080 WINDOW=5840 RES=0x00 SYN URGP=0 ]
Mar 11 01:40:08 dev1 kernel:
DROPITIN=lo OUT= MAC=00:00:00:00:00:00:00:00:00:00:00:00:08:00 SRC=""
DST=172.16.5.92 LEN=88 TOS=0x00 PREC=0xC0 TTL=255 ID=56597 PROTO=ICMP TYPE=3
CODE=1 [SRC="" DST=172.16.250.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64
ID=24795 DF PROTO=TCP SPT=1030 DPT=8080 WINDOW=5840 RES=0x00 SYN URGP=0 ]
Mar
11 01:40:08 dev1 kernel: DROPITIN=lo OUT=
MAC=00:00:00:00:00:00:00:00:00:00:00:00:08:00 SRC="" DST=172.16.5.92
LEN=88 TOS=0x00 PREC=0xC0 TTL=255 ID=56598 PROTO=ICMP TYPE=3 CODE=1
[SRC="" DST=172.16.250.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=15354 DF
PROTO=TCP SPT=1031 DPT=8080 WINDOW=5840 RES=0x00 SYN URGP=0 ]
It seams that there is a problem with icmp.
172.16.5.92 is the linux box and 172.16.250.1:8080 is the proxy
server...
----- Original Message -----
Sent: Tuesday, March 11, 2003 1:39
AM
Subject: RE: iptables and apt-get
I'd
put the default INPUT policy last.
here
is mine
note
some of this is experimental as per my notes in the file.
#!/bin/bash
#iptables firewall
script
#17/06/01
#14/5/02 flushing and prerouting logs added, other
rules added but not
#27/9/2002 mods for wireless laptop and 3 nics
active
#8/12/2002 wi-fi working mk1
#start ip_forwarding in /etc/network/options
#elvis firewall 19/12/2002
Here is my rule set:
#default input policy
/sbin/iptables -P
INPUT DROP
#allow www/https(ssl)
/sbin/iptables -A INPUT -s 0/0 -d
172.16.5.92 -p tcp --dport https -j ACCEPT
#allow ssh
/sbin/iptables
-A INPUT -s 0/0 -d 172.16.5.92 -p tcp --dport ssh -j ACCEPT
#allow
smtp
/sbin/iptables -A INPUT -s 0/0 -d 172.16.5.92 -p tcp --dport smtp -j
ACCEPT
#create a new rule for drop #
log
#/sbin/iptables -N drop-and-log-it
#log it
#/sbin/iptables -A
drop-and-log-it -j LOG --log-level info --log-prefix 'DROPIT'
#drop
it
#/sbin/iptables -A drop-and-log-it -j DROP
#now call the rule to drop and log
/sbin/iptables -A INPUT -j drop-and-log-it
-----------
Thanks
ijg0
----- Original Message -----
Sent: Tuesday, March 11, 2003 1:11
AM
Subject: RE: iptables and
apt-get
shouldnt do
unless you changed the output rules?
please provide your ruleset
Thing
Hi Guys,
I am setting up iptables on my debain woody
box. I have decided to close everyting and then open up just ssh and
ssl. This obviously prevents my apt-get update
from working. What ports do I need to open for this
to work. If it helps I am going through a proxy to get to the
internet.
Thanks
ijg0