Forums

Gregg
Gregg
Offline
Resolved
0 votes
I have a fax sever I need to do a port forward from the SIP providers ip address and I already rule in place for that. But what I need to change is to apply that to a 1:1 NAT rule.
Here is the current rule I have that is working fine... iptables -A FORWARD -m udp -p udp --src 208.93.226.214 --sport 5060 --dst 10.0.0.27 --dport 5060 -j ACCEPT # sip.
This rule is using my eth0 ip address but I need to move that to one of my other available ip addresses because of multiple ports to different internal server addresses.
Is that possible? Or is there a different solution I should look at. Basically I guess I need a 1:1 NAT but only from specific source ip addresses. ???
Thanks for any help on this.
Tuesday, August 25 2015, 04:03 PM
Share this post:
Responses (1)
  • Accepted Answer

    Wednesday, September 02 2015, 07:01 PM - #Permalink
    Resolved
    0 votes
    I believe with 1-to-1 NAT you can forward specific ports but you will need an extra rule to limit it a single source IP address and/or destination address. I don't use 1-to-1 NAT so if you can add the 1-to-1 NAT rule then post the output to:
    iptables -nvL
    iptables -nvL -t nat
    I may then be able to advise.
    The reply is currently minimized Show
Your Reply