ipchains/TCP/UDP, Why should I open UDP ports so that my TCP ports can work?

ipchains/TCP/UDP, Why should I open UDP ports so that my TCP ports can work?

Post by Ed Aihua W » Fri, 23 Mar 2001 09:43:55



Hi,

I have set up firewall to accept some ports.
/sbin/ipchains -F input
/sbin/ipchains -P input ACCEPT
/sbin/ipchains -A input -p TCP -s 0/0 --dport ssh -j ACCEPT
/sbin/ipchains -A input -p UDP -s 0/0 --dport ssh -j ACCEPT
....

Then I want to lock down all other ports.
/sbin/ipchains -A input -p TCP -s ! 192.168.0.0/24 -j DENY

#??? what's wrong with this UDP ???
/sbin/ipchains -A input -p UDP -s ! 192.168.0.0/24 -j DENY

If I comment out the UDP line, I can ssh into firewall from outside.
If I don't comment out that line, I can no longer ssh into firewall from
outside.

Why should I open UDP ports so that my TCP ports can work?

Thanks for any help.

Ed Wu

 
 
 

1. Ignore all incoming udp/ip and udp/ip on all ports, except open ports?

Hey,
    I want to set my linux box up such that it will not even admit
that it exists (Stealth, if you will) on ports that are not open for
connections.  Port 79 (Finger) for instance, I ran  port scanner on my box
and it responded that the machine exists, and the port is closed.
Is there a to get it to not respond (ignore) incoming connections
altogether?

Also, it is running as a webserver / router / firewall.
I would also like to bind certain services to net devices like
FTP to eth1, so I can access them on my VPN, but not from the
outside eth0.  Is that possible?

If anyone has any ideas I would be most appreciative,
maybe direct me to the appropriate HOWTO?

Thanks,
       Genesis

2. Scrambled Partition

3. UDP/TCP ports -> protocol port

4. Partitioning drive without losing Windows data

5. Hacked? TCP port 12345 and UDP port 2364

6. TFT from DVI ATI Radeon in XFree?

7. Question: on iptables and opening a port for incoming tcp/udp packets

8. What to buy for kick-ass system upgrade ?

9. FireWall-1 & High UDP/TCP ports

10. How do I find/get free TCP/UDP ports

11. How to determine which process uses which tcp/udp port?

12. UDP/TCP port redirect options under RH 7.2??

13. Process for a given tcp/udp port ?