I'm too newbie in networking, so I'm not sure if it is poible and how. I need to redirect all traffic from one address to another, similarly to Linux command:
Can I make it with
I have very basic ipfw.rules at the moment:
Shall be grateful for any suggestions and corrections.
Code:
iptables -t nat -A PREROUTING -p tcp -m tcp --dport $pp1 -d $addr1/$mask1 -j DNAT --to-destination $addr2:$pp2
ipfw
(or how else)? The machine is an Internet gate for my laptop also, if that means something.I have very basic ipfw.rules at the moment:
Code:
#compromiss
/sbin/ipfw add 00100 pass all from any to any via lo0
/sbin/ipfw add 00101 deny all from any to 127.0.0.0/8
/sbin/ipfw add 00102 deny all from 127.0.0.0/8 to any
/sbin/ipfw add 00500 check-state
/sbin/ipfw add 02000 allow icmp from any to any out icmptype 8
/sbin/ipfw add 02001 allow icmp from any to any in icmptype 0
/sbin/ipfw add 32767 allow all from any to any