Results 1 to 3 of 3
Hi
I have a port forward using iptables (tcp/443) and it's OK. But I can't access any web site that using https. I set my port forwarding with this commands:
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-26-2009 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 3
port forward
Hi
I have a port forward using iptables (tcp/443) and it's OK. But I can't access any web site that using https. I set my port forwarding with this commands:
iptables -A PREROUTING -p tcp -m tcp --dport 443 -j DNAT --to-destination 192.168.60.2
iptables -A FORWARD -p tcp -m tcp -d 192.168.60.2 --dport 443 -m state --state NEW -j ACCEPT
thanks in advance for any help
- 11-26-2009 #2
you need to use state established,related instead of new
- 11-26-2009 #3
When you say 'any website' are you talking just internally or externally?
Reason I ask is you did not define the inbound interface for your DNAT and thus the PREROUTE rule is applied to all interfaces and everything is DNAT'ed before it is routed.
Not really. All new connections require the NEW rule or they will not be accepted when running a stateful firewall.


Reply With Quote

