On Tue, 09 Sep 2014 17:21:06 +1200 Steve Holdoway <[email protected]> wrote:
> I really never did get the hang of this... much like Mondays. > > I have a little linuxgateway box that delivers the usual > DNS/DHCP/squid/squidguard etc services, and it also runs as a VoIP > gateway. > > At the moment I have a SIP softphone running, and when away from home, > I access the Asterisk server over a VPN... I've seen the volume of > attempted hacks if you leave SIP on the internet! > > I would like to use an IAX2 extension instead, and access the exchange > directly. To do this with a single configuration, I'd like to be able to > redirect traffic that is sent to the (static) external IP address from > an internal source. > > I'm sure that iptables can do this, but it's beyond me today. > > Any suggestions?? > > Cheers, > > Steve hi, something like this should do the trick: iptables -t nat -A PREROUTING -i <external interface> -p udp --dport 4596 -j DNAT --to-destination <dest ip>:4596 aaron m _______________________________________________ Linux-users mailing list [email protected] http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
