All pastes #460258 Raw Edit

Unnamed

public text v1 · immutable
#460258 ·published 2007-04-26 23:23 UTC
rendered paste body
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 10.0.1.0/24 -d 0/0 -j MASQUERADE
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 5432 -j DNAT --to 10.0.1.5:5432


This is that I get
PORT     STATE    SERVICE
20/tcp   filtered ftp-data
22/tcp   open     ssh
25/tcp   filtered smtp
80/tcp   open     http
135/tcp  filtered msrpc
136/tcp  filtered profile
137/tcp  filtered netbios-ns
138/tcp  filtered netbios-dgm
139/tcp  filtered netbios-ssn
445/tcp  filtered microsoft-ds
593/tcp  filtered http-rpc-epmap
1080/tcp filtered socks
1723/tcp open     pptp
5432/tcp filtered postgres

\I need the postgres port but I cant coneect to postgres