i applied the iptables rules you had given but didn't workout
iptables -A FORWARD -p TCP -i eth1 -o eth0 -d 192.168.1.249 --dport 8300 \-m state --state new -j ACCEPT
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A PREROUTING -p TCP -i eth1 -d 59.144.124.58 --dport 8300 \-j DNAT --to-destination 192.168.1.249
when i see iptables status it shows me rules applied
Table: nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere dsl-mum-static-058.124.144.59.airtelbroadband.intcp dpt:8300 to:192.168.1.249
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Table: filter
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT gre -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:1723
ACCEPT all -- 192.168.100.0/24 192.168.100.0/24
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
LOG all -- anywhere anywhere LOG level warning
ACCEPT all -- 192.168.100.0/24 192.168.100.0/24
ACCEPT tcp -- anywhere 192.168.1.249 tcp dpt:8300 state NEW
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT gre -- anywhere anywhere
Chain RH-Lokkit-0-50-INPUT (0 references)
target prot opt source destination
when i go to access the url
http://59.144.124.58:8300
it gives me below error
While trying to retrieve the URL:
http://59.144.124.58:8300/
The following error was encountered:
Connection Failed
The system returned:
(111) Connection refused
The remote host or network may be down. Please try the request again. i also given the database server gateway to my linux server ip for his gatway.
Please help me out otherwise my boss will fired me
Regards
Satish