transparent proxy help

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
Post Reply
User avatar
golann

transparent proxy help

Post 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
Contact:

Post 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

Post 29 Oct 2013, 00:01

oke mas. ada saran gak?


User avatar
golann

Post 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
Contact:

Post 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
Contact:

Post 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
Contact:

Post 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) ...


Post Reply

Who is online

Users browsing this forum: No registered users and 44 guests