Ipsec Espah
04-08-2003, 10:33 PM
Heres a few questions i have about iptables, if you can answer any of them i'd appriciate it. I can't really start using linux untill i have it secured...
1. If i have a few PC's connected to a Linksys Fast Ethernet Cable/DSL router. Would Eth1 be the interface to the router?
2. If the router is going to be handling NAT i wouldn't have to worry about creating any NAT related iptables rules right?
3. If i type in a iptables rule how can i make it automatically take effect without rebooting?
4. Is there any reason why i should use iptables-save and iptables-restore instead of editing /etc/rc.d/rc.firewall?
5. Here is a example of a way to be invisible to traceroutes:
iptables -t mangle -A PREROUTING -p TCP --dport 33434:33542 -j \
TTL --ttl-inc 1
How can changing the TTL make you invsible to traceroutes? Why did he choose to do it on that port range? Also do you have to increment it by only 1 to be invisible to traceroutes?
6. Which is better DROP or REJECT? I always thought DROP was better but after reading the "Iptables Tutorial" it seems like REJECT would be better since it can block port scanners and it wouldn't leave dead sockets on either host.
1. If i have a few PC's connected to a Linksys Fast Ethernet Cable/DSL router. Would Eth1 be the interface to the router?
2. If the router is going to be handling NAT i wouldn't have to worry about creating any NAT related iptables rules right?
3. If i type in a iptables rule how can i make it automatically take effect without rebooting?
4. Is there any reason why i should use iptables-save and iptables-restore instead of editing /etc/rc.d/rc.firewall?
5. Here is a example of a way to be invisible to traceroutes:
iptables -t mangle -A PREROUTING -p TCP --dport 33434:33542 -j \
TTL --ttl-inc 1
How can changing the TTL make you invsible to traceroutes? Why did he choose to do it on that port range? Also do you have to increment it by only 1 to be invisible to traceroutes?
6. Which is better DROP or REJECT? I always thought DROP was better but after reading the "Iptables Tutorial" it seems like REJECT would be better since it can block port scanners and it wouldn't leave dead sockets on either host.