Using the ubuntu network manager I set my wired connection IPV4 Settings to "Shared with other computers". This way I'm able use my wireless-n connection on my ps3 through ubuntu. The problem is that this simple gui method doesn't support upnp, so when ever I turn on my ps3 I have to enter this command into the terminal.

sudo upnpd wlan0 eth0

Is there anyway I can automate this? Anyway to setup my iptables so this is done automatically as soon soon as my ps3 connects through my ubuntu pc?