(no subject)
Feb. 2nd, 2005 11:52 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Ill. Firewall steadfastly refusing to accept incoming connections, even when told to. Since it's not logging the rejections, I can't even find out which part of the config is wrong. About to venture out of house in search of honey. Still hoping to be OK for cinema tonight. Illness has apparently caused highly terse writing style.
no subject
Date: 2005-02-02 04:02 am (UTC)no subject
Date: 2005-02-02 04:23 am (UTC)no subject
Date: 2005-02-02 04:21 am (UTC)1) iptables or ipchains?
2) start by logging everything, if you still don't get any log output then either no packets are reaching you or you got the logging rule wrong.
no subject
Date: 2005-02-02 04:27 am (UTC)With policy drop, I'd expect "connection timed out" rather than connection refused. So I can only assume that this section isn't being considered applicable for some reason.
no subject
Date: 2005-02-02 04:35 am (UTC)no subject
Date: 2005-02-02 04:55 am (UTC)I never knew about watch. What a phenominally useful command.
no subject
Date: 2005-02-02 05:06 am (UTC)no subject
Date: 2005-02-02 05:08 am (UTC)no subject
Date: 2005-02-02 04:40 am (UTC)I'll second
eg. if your upstream hardware is NATting incoming traffic so your machines think it's coming from an unroutable address, you'd probably drop it before anything else (Remember: I don't read ipfilter, so I'm guessing at what the rules mean). Of course, such hardware will cause further problems. But by logging everything you should get some clues.
no subject
Date: 2005-02-02 04:47 am (UTC)Your idea about weird NAT may have something to it, vis.
which appears to imply the remote end has NAT weirdness going on, even though my actual IP address is a public IP. TBH, I have no idea what the ISP are up to there.
FireHOL logs packets that don't match any of its rules by default. However, I may be able to set up even more logging, but then I suspect I'll be swamped by info and unable to find the specific bit I need.
I'm going to regret this...
Date: 2005-02-02 04:58 am (UTC)ipconfig eth0
iptables -L -nv
iptables -t nat -L -nv
iptables -t mangle -L -nv
I'll have a look through them.
Re: I'm going to regret this...
Date: 2005-02-02 05:11 am (UTC)Re: I'm going to regret this...
Date: 2005-02-02 05:15 am (UTC)Re: I'm going to regret this...
Date: 2005-02-02 05:23 am (UTC)Re: I'm going to regret this...
Date: 2005-02-02 05:31 am (UTC)That includes the blank lines between chains (all 50 of them in the first case).
I'm using shorewall to create them.
That covers...
General policy rules: allow outgoing, block incoming etc. (I've actually got three zones, including the firewall as one. So there are 7 policies in total)
Specific overrides: redirect incoming SSH, DNS, SMTP.
And a whole load of "generic" modules that Shorewall creates, to control assorted "standard" options, such as SSH, DNS, SMB, etc. (So the DNS rule mentioned above actually just calls the generic DNS one. Which is two lines long).
1000 lines, for home use, seems excessive!
But possibly the best way to debug it is for somebody to walk through them by hand.
Re: I'm going to regret this...
Date: 2005-02-02 06:10 am (UTC)It hasn't helped that I've spend most of yesterday and today chasing a red herring that was nothing to do with the firewalling. I'm not even sure that the problem with the vpn software I use is firewall related either (it's just the most obvious thing that's changed since it stopped working). The vpn software is hand-rolled by technogods, and is thus a complete black box to me, and I have no real clue when it comes to debugging problems with it. All I can do is sit here rather lamely and go "but it doesn't work", and thus earn the derision of said techogod, which I'm not really up to coping with in my current ill state.
Re: I'm going to regret this...
Date: 2005-02-02 06:17 am (UTC)Re: I'm going to regret this...
Date: 2005-02-02 06:42 am (UTC)Given that I don't use FireHOL, I'm unable to debug it directly. OTOH, I can (or could: I'm rusty) write IPtables directly, so I might be able to tell you what's wrong, if I had the whole set of rules. And then we'd have to work out what FireHOL config was setting that up. Can't think of anything else to usefully suggest without access to the machine :)
Re: I'm going to regret this...
Date: 2005-02-02 09:47 am (UTC)It's probably a bad idea at this point (as in, don't change things at random until you know what went wrong), but you could try the other hand-rolled vpn software...
In protocol terms it places fewer requirements on a firewall than udptunnel; it only requires UDP connectivity on one fixed (incoming) port and doesn't need ssh, an account on the firewall machine for peer sites, etc.
I believe it's easier to get working than udptunnel, but I expect I'm very biased. Other users might give you a more useful opinion.
P-t-P:172.26.131.160
Date: 2005-02-02 05:14 am (UTC)Re: P-t-P:172.26.131.160
Date: 2005-02-02 05:24 am (UTC)Re: P-t-P:172.26.131.160
Date: 2005-02-02 05:28 am (UTC)