Re: iptables question

"Paul O'Malley" <[email protected]>
Newsgroups gmane.user-groups.linux.ilug.general
Message-ID <CAALCm-p2fmXa_X6ptPhy3OtrEc2OctGJXVCMSdcb0V+AA7uNZg@mail.gmail.com>
Hi Nick

yeah that was the way I went, I had been playing around with a group
of named chains, and it was just getting too messy.

-A PREROUTING  -p tcp -s 1.2.3.4 -m tcp -d 7.8.9.10 --dport 80 -j DNAT
--to-destination 192.168.1.2:80
one entry per host, direct edit of iptables.saved
 ;-)
Cheers
P.





On 23 June 2015 at 21:58, Nick Geoghegan <[email protected]> wrote:
> It would be handy to give the rules for my assumption.
>
> iptables -t nat -A PREROUTING -s 1.2.3.4 -p tcp --dport 80 -j DNAT
> --to-destination 192.168.1.2:80
> iptables -t nat -A PREROUTING -s 2.3.4.5 -p tcp --dport 80 -j DNAT
> --to-destination 192.168.1.2:80
>
>
>
> On 23/06/2015 21:44, "Nick Geoghegan" <[email protected]> wrote:
>
>>Just so I¹m reading this right
>>
>>1.2.3.4 and 2.3.4.5 will connect to 7.8.9.10 and reroute traffic to
>>192.168.1.2?
>
>
> --
> Irish Linux Users Group
> ---
> You received this message because you are subscribed to the Google Groups "ILUG" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
> To post to this group, send an email to [email protected].
> Visit this group at http://groups.google.com/a/linux.ie/group/ilug/.
> To view this discussion on the web, visit https://groups.google.com/a/linux.ie/d/msgid/ilug/D1AF85B8.3C823%25nick%40nickgeoghegan.net.

-- 
Irish Linux Users Group
--- 
You received this message because you are subscribed to the Google Groups "ILUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send an email to [email protected].
Visit this group at http://groups.google.com/a/linux.ie/group/ilug/.
To view this discussion on the web, visit https://groups.google.com/a/linux.ie/d/msgid/ilug/CAALCm-p2fmXa_X6ptPhy3OtrEc2OctGJXVCMSdcb0V%2BAA7uNZg%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.