Rule to access application server
I have 2 LANs in my network. They are:
LAN 1: 192.168.0.0
LAN 2: 192.168.1.0
Both LANs, communicate with each other. And both have an application server. In LAN1, I can access the web server, internal and external. At LAN2, only works on the internal network.
The rule that I'm using is as follows:
iptables -t nat -A PREROUTING -p tcp -d my_ip --dport 80 -j DNAT --to 192.168.1.254:80
This rule works for LAN1, but not for LAN2. Anyone know what that is can be lockin access?
* Sorry for bad english.. :banghead:
If you just want to access the two devices via the same destination "my_ip" you could change the destination port like this:
But I managed to solve the problem, was setting at the Gateway 2. Firewall rules. =)
|All times are GMT -5. The time now is 02:29 AM.|