[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ipfwadm / ipchains: can't enable ssh ! is the local machine  - 192.168.100.* is outside.
I can telnet and ping outside - no problem. But I can't ssh to,
telnet on doesn't work either and somehow printer jobs
aren't send until I disable the firewall



case "$1" in


		# default policy
		${FW} -P forward DENY
		${FW} -P input DENY
		${FW} -P output DENY

		# loopback
		${FW} -A input -j ACCEPT -i lo
		${FW} -A output -j ACCEPT -i lo

		${FW} -A output -j ACCEPT -i eth0 -p tcp -s
		${FW} -A output -j ACCEPT -i eth0 -p udp -s

		${FW} -A input -j ACCEPT -i eth0 -p tcp \
			-d 1024: ! -y
		${FW} -A input -j ACCEPT -i eth0 -p udp \
			-d 1024:

		${FW} -A input -j ACCEPT -i eth0 -p tcp -d 25

		${FW} -A input -j ACCEPT -i eth0 -p icmp
		${FW} -A output -j ACCEPT -i eth0 -p icmp

		# masquerade

		${FW} -A forward -j MASQ -i ppp0 


		${FW} -F


Reply to: