Displaying 4 results from an estimated 4 matches for "nat_tutorial".
2016 Jun 21
2
Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?
...Alexander Farber wrote:
>
> > *nat
> > :INPUT ACCEPT
> > :OUTPUT ACCEPT
> > :PREROUTING ACCEPT
> > :POSTROUTING ACCEPT
> > -A PREROUTING -p tcp --dst 144.76.184.154 --dport 8080 -j REDIRECT
> > --to-port 80
>
> http://www.karlrupp.net/en/computer/nat_tutorial
>
> # IMPORTANT: Activate IP-forwarding in the kernel!
>
> # Disabled by default!
> $> echo "1" > /proc/sys/net/ipv4/ip_forward
>
> ~~~~~~~~~~~~~~~
>
> Is that a solution ?
and this ?
# TCP packets from 192.168.1.2, port 12345 to 12356
# to 12...
2016 Jun 21
4
Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?
Hello Gordon and others
On Tue, Jun 21, 2016 at 4:13 PM, Gordon Messmer <gordon.messmer at gmail.com>
wrote:
> On 06/21/2016 02:30 AM, Alexander Farber wrote:
>
>> -A PREROUTING -p tcp -m tcp -d 144.76.184.154/32 --dport 80 -j REDIRECT
>> --to-ports 8080
>>
>
>
> I think you have the ports backward, here.
>
here the problem description again:
I have
2016 Jun 21
0
Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?
On Tue, 2016-06-21 at 16:24 +0200, Alexander Farber wrote:
> *nat
> :INPUT ACCEPT
> :OUTPUT ACCEPT
> :PREROUTING ACCEPT
> :POSTROUTING ACCEPT
> -A PREROUTING -p tcp --dst 144.76.184.154 --dport 8080 -j REDIRECT
> --to-port 80
http://www.karlrupp.net/en/computer/nat_tutorial
# IMPORTANT: Activate IP-forwarding in the kernel!
# Disabled by default!
$> echo "1" > /proc/sys/net/ipv4/ip_forward
~~~~~~~~~~~~~~~
Is that a solution ?
--
Regards,
Paul.
England, EU. England's place is in the European Union.
2016 Jun 21
0
Redirecting port 8080 to port 80 - how to add in /etc/sysconfig/iptables file?
...t; > *nat
>> > :INPUT ACCEPT
>> > :OUTPUT ACCEPT
>> > :PREROUTING ACCEPT
>> > :POSTROUTING ACCEPT
>> > -A PREROUTING -p tcp --dst 144.76.184.154 --dport 8080 -j REDIRECT
>> > --to-port 80
>>
>> http://www.karlrupp.net/en/computer/nat_tutorial
>>
>> # IMPORTANT: Activate IP-forwarding in the kernel!
>>
>> # Disabled by default!
>> $> echo "1" > /proc/sys/net/ipv4/ip_forward
>>
>> ~~~~~~~~~~~~~~~
>>
>> Is that a solution ?
>
> and this ?
>
>
>...