From: Boniforti F. <bon...@co...> - 2002-07-03 10:06:55
|
> > iptables -A INPUT -i lo -d 127.0.0.1 -j ACCEPT > > > > Thank you again. > > > You can test it .. try running the command > > telnet localhost 10000 It doesn't connect. It tells me "connection refused". > > and seeing if it connects. By the way, if you have webmin > configured to listed only a specific IP address on the > Port and Address page of the Webmin Configuration module, that > will be the address to which your host must be able to connect. I've set webmin to listen only on ONE of my IP addresses (192.168.0.138). I've also set it to accept connections only from my IP (192.168.0.124) and from 127.0.0.1 What now? Here the full INPUT chain in my iptables-driven firewall: Chain INPUT (policy DROP 37579 packets, 5659K bytes) pkts bytes target prot opt in out source destination 2787K 1389M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED 523 34256 ACCEPT all -- lo * 0.0.0.0/0 127.0.0.1 52804 9920K ACCEPT all -- eth0 * 0.0.0.0/0 192.168.0.255 3 192 ACCEPT icmp -- eth0 * 0.0.0.0/0 0.0.0.0/0 icmp type 0 13 656 ACCEPT icmp -- eth0 * 0.0.0.0/0 0.0.0.0/0 icmp type 8 0 0 ACCEPT icmp -- eth0 * 0.0.0.0/0 0.0.0.0/0 icmp type 4 0 0 ACCEPT icmp -- eth0 * 0.0.0.0/0 0.0.0.0/0 icmp type 11 0 0 ACCEPT tcp -- eth0 * 192.168.0.101 0.0.0.0/0 state NEW tcp dpt:22 3 144 ACCEPT tcp -- eth0 * 192.168.0.121 0.0.0.0/0 state NEW tcp dpt:22 0 0 ACCEPT tcp -- eth0 * 192.168.0.123 0.0.0.0/0 state NEW tcp dpt:22 5 240 ACCEPT tcp -- eth0 * 192.168.0.124 0.0.0.0/0 state NEW tcp dpt:22 369 18516 ACCEPT tcp -- eth0 * 0.0.0.0/0 192.168.0.251 state NEW tcp dpt:25 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 192.168.0.252 state NEW tcp dpt:53 17124 1140K ACCEPT udp -- eth0 * 0.0.0.0/0 192.168.0.252 state NEW udp dpt:53 0 0 ACCEPT tcp -- eth1 * 10.0.0.28 10.0.0.19 state NEW tcp dpt:53 5 360 ACCEPT udp -- eth1 * 10.0.0.28 10.0.0.19 state NEW udp dpt:53 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 192.168.0.138 state NEW tcp dpt:80 43298 2176K ACCEPT tcp -- eth0 * 0.0.0.0/0 192.168.0.138 state NEW tcp dpt:8080 646 31008 ACCEPT tcp -- eth0 * 192.168.0.124 192.168.0.138 state NEW tcp dpt:10000 0 0 ACCEPT udp -- eth0 * 192.168.0.124 192.168.0.138 state NEW udp dpt:10000 Thank you for your support! |