transparent proxy help

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
golann
Posts: 42
Joined: 21 Aug 2013, 10:05

transparent proxy help

Postby golann » 28 Oct 2013, 23:30

root@local-server:/home/server# iptables -A PREROUTING -t nat -p tcp -dport 80 -j REDIRECT -to-port 3128
Bad argument `80'

ini kenapa ya mas??
User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Re: transparent proxy help

Postby anbel » 28 Oct 2013, 23:42

@Mas Golann
Mas lebih baik dijadikan satu topik saja, biar tidak mencar-mencar dan untuk mempermudah pengamatan Moderator
User avatar
golann
Posts: 42
Joined: 21 Aug 2013, 10:05

Re: transparent proxy help

Postby golann » 29 Oct 2013, 00:01

oke mas. ada saran gak?
User avatar
golann
Posts: 42
Joined: 21 Aug 2013, 10:05

Re: transparent proxy help

Postby golann » 29 Oct 2013, 00:04

Try `iptables -h' or 'iptables --help' for more information.
Bad argument `�X'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `�t'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `�t'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `�t'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `�t'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `�P'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `�P'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `�A'
Try `iptables -h' or 'iptables --help' for more information.
Bad argument `�A'
Try `iptables -h' or 'iptables --help' for more information.

ini kenapa lagi ya mas?
User avatar
anbel
Posts: 263
Joined: 18 Mar 2013, 23:38
Location: Bogor - Jakarta
Contact:

Re: transparent proxy help

Postby anbel » 29 Oct 2013, 00:29

Mas Golann
Itu fungsi help dalam penggunaan iptables.
Dicoba kalau begini bagaimana mas.
iptables -t nat -A PREROUTING -p tcp -s 192.168.200.0/24 --dport 80 -j REDIRECT --to-port 3128

exit 0
User avatar
cah_clacap
Posts: 258
Joined: 19 Mar 2013, 23:07
Location: Cilacap
Contact:

Re: transparent proxy help

Postby cah_clacap » 31 Oct 2013, 14:24

anbel wrote:Mas Golann
Itu fungsi help dalam penggunaan iptables.
Dicoba kalau begini bagaimana mas.
iptables -t nat -A PREROUTING -p tcp -s 192.168.200.0/24 --dport 80 -j REDIRECT --to-port 3128

exit 0


===================================================
192.168.200.0/24 itu IP local atau IP Proxy ya mas ???
User avatar
q_p
Posts: 3109
Joined: 14 Oct 2012, 13:01
Contact:

Re: transparent proxy help

Postby q_p » 31 Oct 2013, 17:15

Code: Select all

iptables -t nat -A PREROUTING -p tcp -s 192.168.200.0/24 --dport 80 -j REDIRECT --to-port 3128

Huruf -s di depan 192.168.200.0/24 artinya berasal (source). Bisa dibaca semua yang berasal dari 192.168.200.0/24 (ip-local/LAN) ...

Return to “Ubuntu Server”

Who is online

Users browsing this forum: No registered users and 3 guests