I need help adding some rules to my firewall.
I am sharing a cable modem using natd with my roomate. (also running OSX 10.1). That is working fine. For work, tho, he needs to be able to ftp to his home computer from work, and maybe even vnc to it. I spent alot of time trying to figure out how to make this happen, and my best guess now is to divert any traffic coming to my computer on port 21 to his computer on the lan. I think this will work, but have no idea how to edit the firewall script to make it work.
The scrip that i am using is as follows.
#!/bin/sh
sysctl -w net.inet.ip.forwarding=1 > /dev/null
natd -interface en0
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via en0
/sbin/ipfw add pass all from any to any
thanks for any help
I am sharing a cable modem using natd with my roomate. (also running OSX 10.1). That is working fine. For work, tho, he needs to be able to ftp to his home computer from work, and maybe even vnc to it. I spent alot of time trying to figure out how to make this happen, and my best guess now is to divert any traffic coming to my computer on port 21 to his computer on the lan. I think this will work, but have no idea how to edit the firewall script to make it work.
The scrip that i am using is as follows.
#!/bin/sh
sysctl -w net.inet.ip.forwarding=1 > /dev/null
natd -interface en0
/sbin/ipfw -f flush
/sbin/ipfw add divert natd all from any to any via en0
/sbin/ipfw add pass all from any to any
thanks for any help