Skip to main content
added 634 characters in body
Source Link
mardon
  • 261
  • 1
  • 6
  • 18

may be I have the resolution, It seems problem was in NAT i Try this

iptables -t nat -F iptables -t nat -A PREROUTING -d 149.62.147.106 -p tcp --dport 80 -j DNAT --to-destination 192.168.122.7 iptables -t nat -A PREROUTING -d 149.62.147.106 -p tcp --dport 443 -j DNAT --to-destination 192.168.122.7 iptables -t nat -A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -o bond0 -j MASQUERADE iptables -A FORWARD -s 192.168.122.0/24 ! -d 192.168.122.0/24 -j ACCEPT iptables -A FORWARD -d 192.168.122.0/24 -m state --state RELATED,ESTABLISHED -j ACCEPT 

and this give me on VM responce form curl

may be I have the resolution, It seems problem was in NAT i Try this

iptables -t nat -F iptables -t nat -A PREROUTING -d 149.62.147.106 -p tcp --dport 80 -j DNAT --to-destination 192.168.122.7 iptables -t nat -A PREROUTING -d 149.62.147.106 -p tcp --dport 443 -j DNAT --to-destination 192.168.122.7 iptables -t nat -A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -o bond0 -j MASQUERADE iptables -A FORWARD -s 192.168.122.0/24 ! -d 192.168.122.0/24 -j ACCEPT iptables -A FORWARD -d 192.168.122.0/24 -m state --state RELATED,ESTABLISHED -j ACCEPT 

and this give me on VM responce form curl

added 154 characters in body
Source Link
mardon
  • 261
  • 1
  • 6
  • 18
curl -v google.com * Host google.com:80 was resolved. * IPv6: 2a00:1450:4014:80b::200e * IPv4: 142.251.36.110 * Trying 142.251.36.110:80... * Trying [2a00:1450:4014:80b::200e]:80... * Immediate connect fail for 2a00:1450:4014:80b::200e: Network is unreachable   curl -4 -v google.com * Host google.com:80 was resolved. * IPv6: (none) * IPv4: 142.251.37.110 * Trying 142.251.37.110:80... 
curl -v google.com * Host google.com:80 was resolved. * IPv6: 2a00:1450:4014:80b::200e * IPv4: 142.251.36.110 * Trying 142.251.36.110:80... * Trying [2a00:1450:4014:80b::200e]:80... * Immediate connect fail for 2a00:1450:4014:80b::200e: Network is unreachable 
curl -v google.com * Host google.com:80 was resolved. * IPv6: 2a00:1450:4014:80b::200e * IPv4: 142.251.36.110 * Trying 142.251.36.110:80... * Trying [2a00:1450:4014:80b::200e]:80... * Immediate connect fail for 2a00:1450:4014:80b::200e: Network is unreachable   curl -4 -v google.com * Host google.com:80 was resolved. * IPv6: (none) * IPv4: 142.251.37.110 * Trying 142.251.37.110:80... 
added 320 characters in body
Source Link
mardon
  • 261
  • 1
  • 6
  • 18

even if i try in VM

curl -v google.com * Host google.com:80 was resolved. * IPv6: 2a00:1450:4014:80b::200e * IPv4: 142.251.36.110 * Trying 142.251.36.110:80... * Trying [2a00:1450:4014:80b::200e]:80... * Immediate connect fail for 2a00:1450:4014:80b::200e: Network is unreachable 

even if i try in VM

curl -v google.com * Host google.com:80 was resolved. * IPv6: 2a00:1450:4014:80b::200e * IPv4: 142.251.36.110 * Trying 142.251.36.110:80... * Trying [2a00:1450:4014:80b::200e]:80... * Immediate connect fail for 2a00:1450:4014:80b::200e: Network is unreachable 
added 64 characters in body
Source Link
mardon
  • 261
  • 1
  • 6
  • 18
Loading
Source Link
mardon
  • 261
  • 1
  • 6
  • 18
Loading