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.
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.
Share this post:
Responses (1)
-
Accepted Answer
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:
I may then be able to advise.iptables -nvL
iptables -nvL -t nat
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »